Connecting Tech Pros Worldwide Help | Site Map

doctype

Jean Pierre Daviau
Guest
 
Posts: n/a
#1: Aug 14 '08
Hi,

Why do gurus here and else where suggest html 4.01 doctype Strict?
What is the relation between doctype and css?




--
Jean Pierre Daviau

--
windows XP professionnel 2002 SP2
asus p4 s533/333/133

http://jeanpierredaviau.com

Aimons les étrangers; l'on vit avec eux les trois quart de notre vie.


Sherm Pendley
Guest
 
Posts: n/a
#2: Aug 14 '08

re: doctype


"Jean Pierre Daviau" <once@isEnough.okwrites:
Quote:
Why do gurus here and else where suggest html 4.01 doctype Strict?
HTML because IE doesn't correctly support XHTML. Since it parses it as
HTML anyway, you're better off giving it the real thing.

Strict because that's what is appropriate for new pages. Transitional
is appropriate for updating old pages that contain presentational
markup such as <font>, <center>, and the like.
Quote:
What is the relation between doctype and css?
There is no direct, formal relationship between them.

But, most browsers have a "quirks mode" that's triggered when certain
DTDs, or no DTD at all, are used. Quirks mode will change, among other
things, how IE interprets the CSS box model.

<http://en.wikipedia.org/wiki/Quirks_mode>

sherm--

--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
Closed Thread