Re: Nested Lists

Adam M. Donahue (adam@cyber-guru.com)
Wed, 11 Mar 1998 12:31:40 +0000


Message-Id: <9803111732.AA21247@acf2.nyu.edu>
From: "Adam M. Donahue" <adam@cyber-guru.com>
To: fw11ab@student.hik.se, www-html@w3.org, mvitale@wallace.com
Date: Wed, 11 Mar 1998 12:31:40 +0000
In-Reply-To: <199803111724.MAA09036@www10.w3.org>
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.

Adam 

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