W3C home > Mailing lists > Public > www-validator@w3.org > December 1999

Re: Are lists not processed correctly?

From: Liam Quinn <liam@htmlhelp.com>
Date: Fri, 17 Dec 1999 10:29:09 -0500
Message-ID: <385A56C5.E8BAEA91@htmlhelp.com>
To: brjones3@vt.edu
CC: www-validator@w3.org
brjones3@vt.edu wrote:
> 
> I have the following list:
> <ul>
>         <li>
>                 <b>Heading 1</b><br>
>                 Description
>         </li>
>         <ul>
>                 <li><b>SubHeading 1</b></li>
>                 <ul>
>                         <li>
>                                 <a href="link">Link 1</a><br>
>                                 Link Info<br>
>                                 Link Description<br>
>                         </li>
>                         <li>
>                                 <a href="link">Link 2</a><br>
>                                 Link Info<br>
>                                 Link Description<br>
>                         </li>
>                 </ul>
>                 <li><b>SubHeading 2</b></li>
>                 <ul>
>                         <li>Description</li>
>                 </ul>
>         </ul>
> </ul>
> 
> With the </li> this will not validate correctly.  If I comment out the </li>
> it validates fine.  Is there a problem with the validator?

No.  A UL can contain only LI elements directly, but you have it
containing another UL.  You need to put the inner UL within an LI:

<ul>
        <li>
                <b>Heading 1</b><br>
                Description
                <ul>
                        <li><b>SubHeading 1</b>
                                <ul>
                                        <li>
                                                <a href="link">Link
1</a><br>
                                                Link Info<br>
                                                Link Description<br>
                                        </li>
                                </ul>
                        </li>
                </ul>
        </li>
</ul>

-- 
Liam Quinn
A Real Validator for Windows, http://arealvalidator.com
Web Design Group, http://www.htmlhelp.com
Received on Friday, 17 December 1999 10:28:55 GMT

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