Re: Nested Lists

Adam M. Donahue (
Wed, 11 Mar 1998 12:31:40 +0000

Message-Id: <>
From: "Adam M. Donahue" <>
Date: Wed, 11 Mar 1998 12:31:40 +0000
In-Reply-To: <>
Subject: 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.


/* */