nested list html code example
Example 1: html nested list
<!-- Creat a list inside list -->
<ul>
<li>Coffee</li>
<li>Tea
<!-- nested list -->
<ul>
<li>Black tea</li>
<li>Green tea</li>
</ul>
</li>
<li>Milk</li>
</ul>
Example 2: nested list html
<ul>
<!-- main item list -->
<li>Coffee</li>
<li>Tea
<ul>
<!-- items nested under tea -->
<li>Black tea</li>
<li>Green tea</li>
</ul>
</li>
<li>Milk</li>
</ul>