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

align="center"

From: Bertilo Wennergren <bertilow@hem.passagen.se>
Date: Sun, 21 May 2000 07:50:56 -0400 (EDT)
Message-ID: <000d01bfc31b$5a8bade0$ede02ed5@chello.se>
To: <html-tidy@w3.org>, <www-validator@w3.org>

The following page validates as strict XHTML 1.0 at
<http://validator.w3.org/>.
It shouldn't.

HTML Tidy lets it through with no error reported and no warnings (I use
the default settings for Tidy).

---------------------------------------------------------------------------
<!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>
---------------------------------------------------------------------------

I've also put this at: <http://www.concinnity.se/bertilow/div/test.htm>

There is no "align" attribut for "div" in XHTML 1.0 Strict.

<http://www.htmlhelp.com/tools/validator/> agrees with me and says:

  Errors
  Line 9, character 12:
  <div align="center">
           ^
  Error: there is no attribute align for this element (in this HTML version)

#####################################################################
                         Bertilo Wennergren
                 <http://purl.oclc.org/net/bertilo>
                     <bertilow@hem.passagen.se>
#####################################################################
Received on Sunday, 21 May 2000 08:44:37 GMT

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