Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: document type declaration  (Read 3058 times)

0 Members and 1 Guest are viewing this topic.

sanjo

    Topic Starter


    Starter

    document type declaration
    « on: October 30, 2009, 03:40:15 PM »
    Need an explanation of "document type declaration".  I have had about 70-80 html pages on the internet in 3 different websites, all without a document type declaration.  I don't"
    1)understand the function/purpose of such a declaration and
    2)don't know how to determine which of the following ones apply to me:
    --- for HTML 4.01 Strict documents, <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> should be the first line.

    --- For HTML 4.01 Transitional documents, the first line should be <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">.

    --- For HTML 4.01 Frameset documents, the first line should be <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">.  Thanks


    I

    Geek-9pm


      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: document type declaration
    « Reply #1 on: October 30, 2009, 08:50:26 PM »
    Is this homework?
    The topic "document type declaration" with reference to HTML has to do with the evolution of HTML over the past few years. HTML is supposed to be a standard now. Or soon will be. Real soon. Maybe.

    Quote
    HTML 4.01 Strict does not allow presentational markup with the argument that Cascading Style Sheets should be used for that instead
    http://en.wikipedia.org/wiki/Document_Type_Declaration

    Now, having put that link,
    here is what I find in a page I just made:
    Quote
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    kpac

    • Web moderator
    • Moderator


    • Hacker

    • kpac®
    • Thanked: 184
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 7
    Re: document type declaration
    « Reply #2 on: October 31, 2009, 04:29:11 AM »
    Quote
    HTML is supposed to be a standard now. Or soon will be. Real soon. Maybe.
    HTML 4 and XHTML 1.1 is now the standard.

    http://www.w3schools.com/xhtml/xhtml_dtd.asp