Roots
Back

Nesting Lists

Lists can be nested within one another, to provide a deeper hierarchy of list items.

<ul>
<li>List Item
<ul>
<li>Sublist Item</li>
</ul>
</li>
</ul>


Note that you do not close the <li> tag until after you have closed the lower-level list tag. It is also possible to nest lists of different types within one another, bearing in mind the same rule for closing <li> tags.