nested list html
snippet in html

html nested list

user2287

<!-- 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>

nested list html

user3551

<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>