W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > April to June 2003

RE: Validation Query

From: Jon Hanna <jon@spin.ie>
Date: Thu, 22 May 2003 19:43:59 +0100
To: <w3c-wai-ig@w3.org>
Message-ID: <NDBBLCBLIMDOPKMOPHLHMEKBFCAA.jon@spin.ie>

> Greetings,
>
> Can someone explain to me why:
>
> <DIV><H3>Foo</H3></DIV>
>
> validates under HTML 4.01 Transitional, where as:
>
> <SPAN><H3>Foo</H3></SPAN>
>
> does not?

<div> and <h3> both define a block of text, <span> defines an inline piece
of text. It is logical to allow a block of text to contain a block of text,
it is obviously not logical to allow an inline piece of text to contain a
block of text.
Received on Thursday, 22 May 2003 14:44:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:09 GMT