- From: Liam Quinn <liam@htmlhelp.com>
- Date: Tue, 11 Dec 2001 18:10:08 -0500 (EST)
- To: Eli <nutbar@innocent.com>
- cc: <www-validator@w3.org>
On Fri, 7 Dec 2001, Eli wrote:
> I noticed that the validator, when it's validating XHTML 1.0
> transitional, seems to complain about nested unordered list tags (<ul>).
> I checked up on the HTML 4.01 specs, and it says that nested lists are
> allowed. It doesn't mention anything about nesting 2 lists of the same
> type (nesting a <ul> inside a <ul>), but I'd assume that it should be
> valid.
You're probably nesting the lists incorrectly. The following is invalid:
<ul>
<ul>
<li>...</li>
</ul>
</ul>
A "ul" element cannot directly contain anything except "li" elements. So
the above example should be
<ul>
<li>
<ul>
<li>...</li>
</ul>
</li>
</ul>
--
Liam Quinn
Received on Tuesday, 11 December 2001 18:10:05 UTC