Re: Will not accept DOCTYPE statement

"Jukka K. Korpela" <[email protected]>
Newsgroups gmane.org.w3c.validator
Message-ID <[email protected]>
2014-09-21 12:59, Steve Faulkner wrote:

> what is the error?

The error message was “DTD did not contain element declaration for 
document type name”. (I had to look it up in the archives, as I did not 
see the original message in the list, for some reason.)

The problem with the page,
http://cis.sac.alamo.edu/~rdevore/mfc/default.shtml
is just that the DOCTYPE declaration contains “HTML” in upper case. It 
must be

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

The reason is that XHTML is case-sensitive with element names, so the 
DOCTYPE declares the root element as “HTML”, but no such element is 
defined in the DTD.

Yucca
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.