Posted by Toby Inkster on 11/24/05 09:56
Neredbojias wrote:
> <a href="welcome.html" style="display:block"><h2>Welcome</h2></a>
A is still inline, so can't contain an H2 element. (Just because you've
made it *look* like it's a block element, doesn't mean it really *is* a
block element!)
If you want a valid way of nesting an H2 element within an A element, both
of these will validate:
<a><object><h2>Hello</h2></object></a>
<a><noscript><h2>World</h2></noscript></a>
Though neither is likely to do what the OP wants.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|