Re: Will not accept DOCTYPE statement

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