W3C home > Mailing lists > Public > www-validator@w3.org > September 2014

Re: Will not accept DOCTYPE statement

From: Philip Taylor <P.Taylor@Rhul.Ac.Uk>
Date: Sun, 21 Sep 2014 11:42:19 +0100
Message-ID: <541EAB8B.7070507@Rhul.Ac.Uk>
To: Steve Faulkner <faulkner.steve@gmail.com>
CC: "www-validator@w3.org" <www-validator@w3.org>


Steve Faulkner wrote:

> what is the error?

Line 2, Column 51: DTD did not contain element declaration for document
type name

		  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

DOCTYPE directive reads :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.1//EN"
		  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

W3C recommend :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

Could the missing <?xml version="1.0" encoding="UTF-8"?> account for the
error ?

Philip Taylor
Received on Sunday, 21 September 2014 10:43:12 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:11 UTC