Connecting Tech Pros Worldwide Help | Site Map

doctype

  #1  
Old August 14th, 2008, 04:35 PM
Jean Pierre Daviau
Guest
 
Posts: n/a
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.


  #2  
Old August 14th, 2008, 04:55 PM
Sherm Pendley
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Doctype from codebehind ? WT answers 6 June 27th, 2008 09:06 PM
The doctype or DTD drhowarddrfine insights 0 January 23rd, 2007 08:45 PM
Do I need <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ..... in asp.net 2.0 ? Rolf Welskes answers 6 August 24th, 2006 03:45 AM
Various DOCTYPE questions. Viken Karaguesian answers 25 October 25th, 2005 09:15 AM
Dynamically Changing the DOCTYPE DartmanX answers 2 October 17th, 2005 05:28 PM