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

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

From: Hanno van Dijk - Novisites <hanno@novisites.com>
Date: Thu, 1 Apr 2010 09:07:15 +0200
To: <www-validator@w3.org>
Message-ID: <000001cad169$f6027d50$e20777f0$@com>
Using the following code:


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



Returns the following error after a check:

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


used DocType:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:31:04 UTC