Posted by Steve Pugh on 10/06/06 11:01
Ben C wrote:
> Harlan Messinger <hmessinger.removethis@comcast.net> wrote:
> > Ben C wrote:
> > >
> > > Put the whole lot inside an <a> element.
> >
> > A DIV element can't go inside an A element. Only inline elements
> > (excluding another A) can go inside an A.
>
> I didn't know that-- it works in Firefox, Opera and Konqueror.
Browsers have to be able to deal with a lot of very poor quality HTML.
But don't expect them to treat invalid code consistently - what works
in one may not work in another, and what works today may not work
tomorrow.
> Do you know where this is specified?
The HTML specification.
http://www.w3.org/TR/html401/struct/links.html#edef-A
See <!ELEMENT A - - (%inline;)* -(A) -- anchor -->
The %inline means that only inline content can go inside an a element.
Steve
[Back to original message]
|