W3C home > Mailing lists > Public > www-validator@w3.org > March 2006

Re: Confusion on Web site Errors

From: Rogue the bronze firelizard <roguebfl@gmail.com>
Date: Fri, 10 Mar 2006 18:02:31 -0600
Message-ID: <44121397.7080603@gmail.com>
To: www-validator@w3.org

Chris Ballay  <bally05@yahoo.com> wrote:

>  Error Line 1 column 0: no document type declaration; implying
>  <HTML> The checked page did not contain a document type ("DOCTYPE")
>  declaration. The Validator has tried to validate with a fallback DTD,
>  but this is quite likely to be incorrect and will generate a large
>  number of incorrect error messages. It is highly recommended that you
>  insert the proper DOCTYPE declaration in your document --
>  instructions for doing this are given above -- and it is necessary to
>  have this declaration before the page can be declared to be valid.
>  Now how am I suppose to know where this error is? I am making my
>  site through godaddy.com so you can understand the difficulty on know
>  which page this error pertains to. All it says is Line 1 Column 0.
>  I looked at your site's instructions on using the correct doc't type,
>  but it was very hard to comprehend. Again, I hope you can help as
>  soon as possible.

Try revalidation with the "Verbose Output" box checked, it will give you 
the answer to that question..

from the output:

No |DOCTYPE| found! Attempting validation with HTML 4.01 Transitional.

    The DOCTYPE Declaration was not recognized or is missing. This
    probably means that the Formal Public Identifier contains a spelling
    error, or that the Declaration is not using correct syntax.
    Validation has been performed using a default "fallback" Document
    Type Definition that closely resembles "HTML 4.01 Transitional", but
    the document will not be Valid until you have corrected this problem
    with the DOCTYPE Declaration.

    You should place a DOCTYPE declaration as the very first thing in
    your HTML document. For example, for a typical XHTML 1.0
    <http://www.w3.org/TR/xhtml1/> document:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

          <!-- ... body of document ... -->

    For XML documents, you may also wish to include an "XML Declaration"
    even before the DOCTYPE Declaration, but this is not well supported
    in older browsers. More information about this can be found in the
    XHTML 1.0 <http://www.w3.org/TR/xhtml1/> Recommendation.

    The W3C QA Activity maintains a List of Valid Doctypes
    <http://www.w3.org/QA/2002/04/valid-dtd-list.html> that you can
    choose from, and the WDG maintains a document on "Choosing a DOCTYPE
Received on Saturday, 11 March 2006 00:09:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:48 UTC