W3C home > Mailing lists > Public > www-validator@w3.org > May 2000

Re: align="center"

From: Mikkel Bjerg <mbjerg@daimi.au.dk>
Date: Tue, 23 May 2000 10:06:29 +0200
Message-ID: <392A3BFA.41C6@daimi.au.dk>
To: www-validator@w3.org
Bertilo Wennergren wrote:
> 
> The following page validates as strict XHTML 1.0 at
> <http://validator.w3.org/>.
> It shouldn't.
> 
> ---------------------------------------------------------------------------
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <title>Test</title>
> </head>
> <body>
> 
> <div align="center">
> Text
> </div>
> 
> </body>
> </html>

It is probably because the W3C validator only checks for XML validity,
and if there is a correct DOCTYPE in the top of the document (These
things are not for sure, but just my experience)


-- 
MVH

Mikkel Bjerg
Received on Tuesday, 23 May 2000 04:06:46 GMT

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