|
Posted by Andy Dingley on 02/06/07 17:52
On 6 Feb, 16:52, Ed Seedhouse <eseedho...@shaw.ca> wrote:
> Er, I believe that would be invalid html since the A element is inline
> and you can't validly put a block element inside it.
Although that's true, the <a> element was closed before the <h1>
anyway (and so it's actually valid). In HTML it would be closed _by_
encountering the <h1>, in this example it's using the XML syntax for
an empty element.
<a ... ><h1>Foo</h1></a>
would be straight-up wrong though.
Navigation:
[Reply to this message]
|