W3C home > Mailing lists > Public > www-html@w3.org > March 1998

RE: Nested Lists

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

This archive was generated by hypermail 2.4.0 : Thursday, 30 April 2020 16:20:33 UTC