Re: Nested lists

Peter Gylden Houmann <PGH@si.dk> wrote:

> *	Line 10
> <http://validator.w3.org/check?&ss=y&uri=http%3A//www.si.dk/netsteder/menu.h
> tm>, column 20: 
> 		  <ol class="nav-bar2">
> 		                      ^
> 		Error: document type does not allow element "OL" here;
> assuming missing "LI" start-tag

If you nest lists, a nested list must be a child of "li", in this case,
you should not place the "li" end-tag before the "ol" start-tag.  So,

>    9: <li class="no-disc"><a href="/netsteder/raad.html">R&aring;d</a></li>

Remove "</li>" from here, and

>   13: </ol>

Add "</li>" after "</ol>".  Then the document will be valid.

Regards,
-- 
Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium

Received on Monday, 8 May 2000 12:28:20 UTC