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

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 UTC