Reply to Re: CSS & Div Tag, Hyperlinked?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация