Welcome to WebmasterWorld Guest from 54.226.133.245

Forum Moderators: incrediBILL

Message Too Old, No Replies

Just learning HTML - and what I wrote looks like rubbish

     
5:25 pm on Jun 26, 2010 (gmt 0)

New User

5+ Year Member

joined:June 26, 2010
posts:9
votes: 0


I have just begun HTML, can someone please rectify my rubbish, I have written my page like that : <!-- li{list-style-type:none;float:left;} p{text-align:center} -->
<ul>
<li>
<p><span style="font-size: 14pt; color: #000099; font-family: 'Arial'; font-style: normal;">blablablablablablablablablablablablabla <span style="font-weight: bold;">BLABLABLA! </span><span style="font-size: 14pt; color: #333333; font-family: 'Arial'; font-style: normal;">blablabla etc etc

I guess that's just not the way... it looks atrocious :)

[edited by: tedster at 2:56 pm (utc) on Jun 27, 2010]
[edit reason] split from another thread [/edit]

6:23 pm on June 26, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


Welcome to the forums, preciousfoods.

The first thing to do is to make sure your mark-up validates. The snippet you posted doesn't show the closing tags for all the <span> elements (although I realize they might appear further on).

W3C Validator - HTML [validator.w3.org]
W3C Validator - CSS [jigsaw.w3.org]
7:45 pm on June 26, 2010 (gmt 0)

New User

5+ Year Member

joined:June 26, 2010
posts:9
votes: 0


thank you so much. Yes they appear further on, I mean the code works, but it seems it is awfully written :)
9:15 pm on June 26, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


Right - that is too much inline CSS for my taste. Some savvy use of external css files with classes and IDs would clean it up quite well. Still, MS Office can output much worse code than that ;)

Mark-up something like architecture. A building can be structurally sound and fulfill its function but still be ugly and difficult to maintain.
3:13 am on June 27, 2010 (gmt 0)

New User

5+ Year Member

joined:June 26, 2010
posts:9
votes: 0


thank you very much. As I am absolutely new to it, CSS files with classes would mean I should rewrite with .divs etc?
3:02 pm on June 27, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


Not necessarily - you can apply CSS classes or IDs to all kinds of elements - including tables, rowhs and cells.

You may find this thread a good place to start: CSS Crash Course [webmasterworld.com]
9:30 pm on June 27, 2010 (gmt 0)

New User

5+ Year Member

joined:June 26, 2010
posts:9
votes: 0


thank you so much, I have printed the whole course and will start studying it.
Also, I wanted to ask, I have uploaded videos on my host, can I point to them on a page by doing something similar as <a href= etc... ?
thanks!
9:38 pm on June 27, 2010 (gmt 0)

New User

5+ Year Member

joined:June 26, 2010
posts:9
votes: 0


I mean is there an html code like img src= for videos?
9:59 pm on June 27, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


It depends on the format of the video and how you want it to play. The easy way is to upload the video to a video sharing site like Youtube and use the "embed" code they automatically generate.
10:12 pm on June 27, 2010 (gmt 0)

New User

5+ Year Member

joined:June 26, 2010
posts:9
votes: 0


ah, thank you. Hmm, is it very complicated when they are uploaded on my bluehost? videos on youtube disappear a bit quick :)
10:16 pm on June 27, 2010 (gmt 0)

New User

5+ Year Member

joined:June 26, 2010
posts:9
votes: 0


oh, it is .flv BTW
10:18 pm on June 27, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member topr8 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2002
posts:3171
votes: 8


>>videos on youtube disappear a bit quick

if they disappear on youtube then i guess they are illegal? or in breach of someone's copyright?

if that is the case then expect the copyright holder to get your entire website taken down if you host them yourself and for them to possibly sue you, depending on where you live you might not care about this but otherwise you might.
10:20 pm on June 27, 2010 (gmt 0)

New User

5+ Year Member

joined:June 26, 2010
posts:9
votes: 0


Thank you, is there a way to embed from my own bluehost account?
thank you.
11:06 pm on June 27, 2010 (gmt 0)

New User

5+ Year Member

joined:June 26, 2010
posts:9
votes: 0


ok, I found, thank you.