Welcome to WebmasterWorld Guest from

Forum Moderators: mack

Message Too Old, No Replies

CSS query

using body and text code

5:42 pm on Jan 3, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 30, 2002
votes: 0

my first post!
I am a student with an australian government funded college studying web design and programming. At this point (second semester work) I am learning about CSS 2.

I study via the web and do not have good access to asking questions.

In the notes I am advised not to use style on the body tag due to some browsers not rendering this well; but I am also advised to use HTML body (bgcolor) and text (color) when using a linked stylesheet. I don't really follow this because if the text is already determined by P tags in the CSS why use a text (HTML) tag at all.

Can someone please enlighten me as to why they would suggest I do this.

5:54 pm on Jan 3, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Dec 7, 2001
votes: 0

Welcome to webmasterWorld

There ia a diference between browsers as to how they apply a style when applied to a body tag or inline (tag by tag basis) or as part of an external css file. I find the most consistent to be as part of an external css file.

There is a css forum as part of webmasterWorld started recently by "Nick W" and I sugest you check there for css specific advice.

6:48 pm on Jan 3, 2003 (gmt 0)

Senior Member

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

joined:Feb 4, 2002
votes: 0

Welcome to WebmasterWorld!

For me this is much like any other issue to do with designing sites. Depends on your audience.

Your teacher is incorrect in telling you 'what's best' as a generalization. If you are creating a site for people that will mainly be using version 3/4 browsers then you might as well write in HTML3.2 and be done with it.

If your audience is mainly version 5+ (most sites) then you can pretty much use external CSS for Everything. It just takes a little know how and study...

Hope you enjoy WebmasterWorld!



Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members