W3C home > Mailing lists > Public > www-validator@w3.org > February 2004

Re: <ol> with <a> and <li>

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Mon, 16 Feb 2004 22:26:52 +0200 (EET)
To: www-validator@w3.org
Message-ID: <Pine.GSO.4.58.0402162223530.1584@korppi.cs.tut.fi>

On Mon, 16 Feb 2004 paul.a.gates@us.abb.com wrote:

> <ol>
> <a href="somelink.html" ....>

That's a syntax error indeed.

> I assume that that means that an ordered list cannot contain an anchor
> around it's list items.

Correct, since the relevant declaration is

<!ELEMENT OL - - (LI)+>

> I can switch the order, but it will not give me
> the full effect I was looking for.

Consider using CSS to achieve the presentational effect, whatever it is.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Monday, 16 February 2004 15:26:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:10 GMT