SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard
    Join Date
    Nov 2000
    Location
    Chico, Ca
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Importance of declaring a DTD in an HTML Doc

    I am taking a Beg. Web Design class this semester and the professor is strictly enforcing the declaration of Strict DTD in our document. What is the purpose for this? I have been designing web pages for 3 years and have never declared a DTD in my Docs.


    Chuck
    "Happiness doesn't find you, you find happiness" -- Unknown
    www.chuckknows.com

  2. #2
    SitePoint Addict
    Join Date
    Jul 2001
    Posts
    284
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The most part of it is for when you are validating your coding to the standards.

    The other part is to let visiting browers know exactly what version of coding you are using.

    I find "strict" to be rather hard to adhere to at times, so I stick with "transitional".

  3. #3
    No. Phil.Roberts's Avatar
    Join Date
    May 2001
    Location
    Nottingham, UK
    Posts
    1,142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its primarily used for validation purposes but with the latest crop of browsers it is actually starting to affect how a page is displayed.

    For instance, Mozilla has a "Standards" mode and a "Quirks" mode. Standards mode enforces strict HTML rules to page rendering and is triggered by the presence of the correct doctype.

    "Quirks" mode is much more tolerant of non-compliant code, and can be triggered by either removing the doctype declaration of using a specific quirks-triggering doctype.

    I believe IE6 has a similar system.....
    THE INSTRUCTIONS BELOW ARE OLD AND MAY BE INACCURATE.
    THIS INSTALL METHOD IS NOT RECOMMENDED, IT MAY RUN
    OVER YOUR DOG. <-- MediaWiki installation guide

  4. #4
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Phil.Roberts
    I believe IE6 has a similar system.....
    If IE6 does, I'd like to know how to access the options....

    Sketch
    Aaron Brazell
    Technosailor



  5. #5
    SitePoint Wizard
    Join Date
    Jan 2001
    Location
    Milton Keynes, UK
    Posts
    1,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •