Re: Are lists not processed correctly?

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 UTC