W3C home > Mailing lists > Public > www-validator@w3.org > August 2005

Re: Validator fails code but does not give error message

From: David Håsäther <hasather@gmail.com>
Date: Wed, 10 Aug 2005 16:05:34 +0200
Message-ID: <42FA09AE.9040201@gmail.com>
To: Paula Thomas <paula@wilmot.demon.co.uk>
CC: www-validator@w3.org

On 2005-08-10 07:38, Paula Thomas wrote:

> I was validating my first piece of XHTML code using the w2c validator
> earlier today and got the following confusing output from the validator :-

[...]

> Doctype:
> 
> -//w3c//DTD XHTML 1.0 Strict//EN

This is called the formal public identifier, and it's case sensitive.

The correct form is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Notice the uppercase "W" and "C" in W3C.

-- 
David Håsäther
Received on Wednesday, 10 August 2005 14:05:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:19 GMT