- From: L. David Baron <dbaron@fas.harvard.edu>
- Date: Fri, 17 Dec 1999 10:22:39 -0500 (EST)
- To: brjones3@vt.edu, www-validator@w3.org
On Fri, 17 Dec 1999 09:46:55 -0500 (EST), 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> [cut] > </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. The problem is that nested UL elements belong within an LI element. In other words, your indentation is misleading -- it's not showing the valid tree structure, which is: <ul> <li> Heading 1 <ul> <li>SubHeading 1</li> [cut] </ul> </li> </ul> -David L. David Baron Sophomore, Harvard (Physics) dbaron@fas.harvard.edu Links, SatPix, CSS, etc. <URL: http://www.fas.harvard.edu/~dbaron/ > WSP CSS AC <URL: http://www.webstandards.org/css/ >
Received on Friday, 17 December 1999 10:22:40 UTC