RE: Nested Lists

> 	I used a simple nested unordered list, which according to
> 	the specification [2] is quite alright:
> 	   "Lists may also be nested:"

Now, "lists may also be nested" as text may be in the specification, 
but the validator is going by the DTD!  And strictly speaking, the 
following code is indeed not all right.

> 	   <ul>
> 	      <li>Heading</li>
> 	      <ul>
> 	         <li>Subitem</li>
> 	         <li>Subitem</li>
> 	      </ul>
> 	   </ul>

> 	In other words, the entire nested list is a part of the first
> list's first item.  Attempting to validate this code will pass.

Yes.  This is the only valid way to nest lists according to the HTML 
4.0 DTD.

Adam 

/* mailto:adam@cyber-guru.com */

Received on Wednesday, 11 March 1998 12:32:10 UTC