W3C home > Mailing lists > Public > www-validator@w3.org > April 2010

Re: Using <a> in a <ul> element in front of <li>

From: David Dorward <david@dorward.me.uk>
Date: Thu, 1 Apr 2010 14:20:34 +0100
Cc: <www-validator@w3.org>
Message-Id: <4E17F5F8-0C44-4923-A8BF-01DF4FDCDEDE@dorward.me.uk>
To: Hanno van Dijk - Novisites <hanno@novisites.com>

On 1 Apr 2010, at 08:07, Hanno van Dijk - Novisites wrote:

> Using the following code:
> 
> <ul>
> 
>                         <a href='nl/content/home'><li><br />Home</li></a>
> 
> </ul>
> 
> Is this a known issue or a coding flaw, because it works as it should and looks okay to me!
> 

The only element that may be a child element of a <ul> is <li>, and a <li> element may not be a child element of an <a> element.


-- 
David Dorward
http://dorward.me.uk
Received on Thursday, 1 April 2010 13:21:11 GMT

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