RE: Validation Query

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