Re: Will not accept DOCTYPE statement

2014-09-21 12:36, Philip Taylor wrote:

>> <!-- Default Geneology Page -->
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.1//EN"
>>     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
>
>
> Suggest removing the leading comment and blank line, and making the
> DOCTYPE directive the first line of the file.

That’s advisable indeed, but it does not affect validation. Validators 
have no problems with such a comment, as it is permitted by the syntax. 
But some old browsers (while consuming XHTML as old HTML tag soup) will 
go to Quirks Mode if the DOCTYPE string is preceded by anything.

Yucca

Received on Sunday, 21 September 2014 11:53:21 UTC