Answers for "nested li in html"

5

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>
Posted by: Guest on July-27-2020
1

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>
Posted by: Guest on April-02-2020

Browse Popular Code Answers by Language