doctype

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jean Pierre Daviau

    doctype

    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



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


  • Sherm Pendley

    #2
    Re: doctype

    "Jean Pierre Daviau" <once@isEnough. okwrites:
    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.
    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.or g/wiki/Quirks_mode>

    sherm--

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

    Comment

    Working...