W3C home > Mailing lists > Public > www-validator@w3.org > June 2004

Why is CENTER not allowed here (was Re: [VE][65] New Error Message Suggestion)

From: David Dorward <david@dorward.me.uk>
Date: Sat, 12 Jun 2004 08:25:06 +0100
To: Apometron <apometron@terra.com.br>
Cc: www-validator@w3.org
Message-Id: <1087025104.7389.1.camel@localhost>

On Fri, 2004-06-04 at 15:32, Apometron wrote:
> Why it is not possible?

> Line 23, column 32: document type does not allow element "CENTER" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
> 
> <font size=6 color=black><center><b>text</b></center><

Inline elements (such as <font>) can not contain block elements (such as
<center>).

Both <font> and <center> are deprecated anyway, so you should be using
CSS for this.

Bold centered and very large text suggests that you are using
presentational markup to fake a heading. If you are, then just use a
real heading.

-- 
David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
Received on Saturday, 12 June 2004 03:25:39 GMT

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