Horje

How to Create a list inside a list (a nested list) on HTML <ul> Tag

A list inside another list.

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>A list inside another list</h1>

<ul>
  <li>Coffee</li>
  <li>Tea
    <ul>
      <li>Black tea</li>
      <li>Green tea</li>
    </ul>
  </li>
  <li>Milk</li>
</ul>

</body>
</html>

Output should be:

How to Create a list inside a list (a nested list) on HTML <ul> Tag




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin