W3C home > Mailing lists > Public > www-validator@w3.org > October 2002

Beta: Fatal Error: No DOCTYPE specified!

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 23 Oct 2002 13:42:43 +0200
To: www-validator@w3.org
Message-ID: <3dcd86e4.72738562@smtp.bjoern.hoehrmann.de>



  Fatal Error: No DOCTYPE specified!
     I could not parse this document, because it does not include a
     DOCTYPE Declaration. A DOCTYPE Declaration is mandatory for most
     current markup languages and without such a declaration it is
     impossible to validate this document.
     You should make the first line of your HTML document a DOCTYPE
     declaration, for example, for a typical [29]XHTML 1.0 document:

        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
       [29] http://www.w3.org/TR/xhtml1/
            <-- ... body of document ... -->
     For a list of possible DOCTYPE Declarations, please see the W3C QA
     Activity's [30]List List of Valid Doctypes.
       [30] http://www.w3.org/QA/2002/04/valid-dtd-list.html

1) I don't see any good reason to refuse validation completly. It's very
   simple to choose document types to default to, e.g.

     if element html has attribute xmlns
       default to XHTML 1.0 Transitional
       default to HTML 4.01 Transitional

2) the page should display the revalidate form

3) It's "document type declaration", not "DOCTYPE declaration", please
   keep the terminology straight

4) The phrase talks about a "first line", while the document type
   declaration in the example takes two lines

5) The example should (as per XHTML 1.0) include a XML declaration

6) The example should (as per XHTML 1.0) use both, the lang and the
   xml:lang attribute

7) A "List List"? :-)
Received on Wednesday, 23 October 2002 07:42:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:30 UTC