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

Using the following code:

<ul>

                        <a href='nl/content/home'><li><br />Home</li></a>

</ul>

 

Returns the following error after a check:

document type does not allow element "a" here; assuming missing "li"
start-tag

 

used DocType:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

Is this a known issue or a coding flaw, because it works as it should and
looks okay to me!

Received on Thursday, 1 April 2010 13:10:14 UTC