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

RE: Nested Lists

From: <mvitale@wallace.com>
Date: Wed, 11 Mar 1998 11:25:50 -0600
Message-Id: <199803111724.MAA09036@www10.w3.org>
To: fw11ab@student.hik.se, www-html@w3.org

	I came accross a very strange error when I ran a validation on
	a page of mine using the W3C Validation Service.

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

	My list was in principle constructed as follows:

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

	The Validation Report said:
	   Error at line 75:
	      <ul>
	         document type does not allow element "UL" here;
	         assuming missing "LI" start-tag

	The correct way to nest lists is:

	<ul>
	  <li>Heading
	    <ul>
	      <li>Subitem</li>
	      <li>Subitem</li>
	    </ul>
	  </li>
	</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.

	-Mike Vitale
	mvitale@wallace.com <mailto:mvitale@wallace.com> 


Received on Wednesday, 11 March 1998 12:25:02 UTC

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