Re: Nested lists

Hi,

> Your 4.01 spec says lists can be nested - however the validator will not
> accept line 33 of the following URL:
>
> http://www.saragossa.net/LinuxG3/list-test.shtml
>
> Why can't a UL be nested inside another UL? or a OL?

Move the "</li>" from line 32 to the end of line 36 and everything works
fine, i. e. the nested ULs have to be inside an LI, because according to the
HTML specification [1] only LIs are allowed as children of UL-elements, but
LIs can contain ULs.

Regards,

Clemens

1. <http://www.w3.org/TR/html4/struct/lists.html#h-10.2>

Received on Tuesday, 30 October 2001 05:06:30 UTC