wrote:
> For example, this is what I want (unordered list):
>
> * Item 1
> * Item 2
> * Item 3
> * Item 3a
> * Item 3b
> * Item 3c
> * Item 4
>
> Now, in my markup, I can do (A) or (B), and they both work.
>
> <!-- Markup (A) -->
> <ul>
> <li>Item 1</li>
> <li>Item 2</li>
> <li>Item 3</li>
> <ul>
> <li>Item 3a</li>
> <li>Item 3b</li>
> <li>Item 3c</li>
> </ul>
> <li>Item 4</li>
> </ul>
Look into the HTML specification what elements are allowed as child
elements of ul elements:
<http://www.w3.org/TR/html4/struct/lists.html#h-10.2>
That shows that only li elements are allowed as children of ul (and ol)
elements so what you have above is not valid HTML 4.
--
Martin Honnen
http://JavaScript.FAQTs.com/