Previous Message
Next Message

Doctype and CSS

Sent by Design Groups on 18 January 2006 00:12


Here's a question that was brought to my attention today...

I found a few articles by Eric Meyer (and others like A List Apart) on 
doctype switching, and why you should do it - but I couldn't find the answer 
to one question I had...so I thought maybe you all might know, or have extra 
input.

What, exactly, does the Doctype *do*?  I know it determines how the browser 
should treat the display of the page and stuff...but what would happen if 
you used perfect CSS that's on par with today's standards, but served your 
website as HTML 4.01 Transitional?  How out of whack would it throw your 
CSS?  Are there things that HTML 4.01 doesn't even recognize, because it's 
not that far ahead in the game?  If so, what?  Would upping it one notch by 
adding the URI (or changing to HTML 4.01 Strict) make it function properly, 
or would you need to change completely to XHTML 1.0 Transitional at the very 
least?

I was just curious...it was just an interesting thing that passed my way 
today, and I understand the need for the right Doctypes, but I couldn't find 
anything that *exactly* told me how to tell which doctype is best suited for 
whatever you're designing/recognizes (or doesn't) certain parts of CSS.

Hope I made sense here!

~Shelly 

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: