Hello. Is nesting sublists in li elements the right way to create semantically correct Xhtml? Or should I use the code 2 style for that?
Code 1:
Code 2:<ul>
<li> Some fruit:
<ul>
<li> bananas</li>
</ul>
</li>
<li> Some animals:
<ul>
<li> lion </li>
</ul>
</li>
</ul>
Thanks in advance.<ul>
<li> Some fruit: </li>
<ul>
<li> bananas</li>
</ul>
<li> Some animals: </li>
<ul>
<li> lion </li>
</ul>
</ul>










Bookmarks