homepage Welcome to WebmasterWorld Guest from 184.73.104.82
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Just learning HTML - and what I wrote looks like rubbish
preciousfoods



 
Msg#: 4160196 posted 5:25 pm on Jun 26, 2010 (gmt 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]

 

tedster

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



 
Msg#: 4160196 posted 6:23 pm on Jun 26, 2010 (gmt 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]

preciousfoods



 
Msg#: 4160196 posted 7:45 pm on Jun 26, 2010 (gmt 0)

thank you so much. Yes they appear further on, I mean the code works, but it seems it is awfully written :)

tedster

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



 
Msg#: 4160196 posted 9:15 pm on Jun 26, 2010 (gmt 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.

preciousfoods



 
Msg#: 4160196 posted 3:13 am on Jun 27, 2010 (gmt 0)

thank you very much. As I am absolutely new to it, CSS files with classes would mean I should rewrite with .divs etc?

tedster

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



 
Msg#: 4160196 posted 3:02 pm on Jun 27, 2010 (gmt 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]

preciousfoods



 
Msg#: 4160196 posted 9:30 pm on Jun 27, 2010 (gmt 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!

preciousfoods



 
Msg#: 4160196 posted 9:38 pm on Jun 27, 2010 (gmt 0)

I mean is there an html code like img src= for videos?

tedster

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



 
Msg#: 4160196 posted 9:59 pm on Jun 27, 2010 (gmt 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.

preciousfoods



 
Msg#: 4160196 posted 10:12 pm on Jun 27, 2010 (gmt 0)

ah, thank you. Hmm, is it very complicated when they are uploaded on my bluehost? videos on youtube disappear a bit quick :)

preciousfoods



 
Msg#: 4160196 posted 10:16 pm on Jun 27, 2010 (gmt 0)

oh, it is .flv BTW

topr8

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



 
Msg#: 4160196 posted 10:18 pm on Jun 27, 2010 (gmt 0)

>>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.

preciousfoods



 
Msg#: 4160196 posted 10:20 pm on Jun 27, 2010 (gmt 0)

Thank you, is there a way to embed from my own bluehost account?
thank you.

preciousfoods



 
Msg#: 4160196 posted 11:06 pm on Jun 27, 2010 (gmt 0)

ok, I found, thank you.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved