Loading...

Using Lists in HTML

HTML lists help you create itemized content. There are two main types: unordered and ordered lists. Lists provide structure and clarity.

Unordered List (ul)

The <ul> tag creates an unordered list, typically shown with bullet points. Each list item is wrapped in an <li> tag.

html

<ul>
  <li>Milk</li>
  <li>Bread</li>
  <li>Cheese</li>
</ul>
  • Milk
  • Bread
  • Cheese

Ordered List (ol)

The <ol> tag creates an ordered list, where items are numbered. Use this when the sequence of items matters, such as steps or instructions.

html

<ol>
  <li>Preheat oven</li>
  <li>Mix ingredients</li>
  <li>Bake for 30 minutes</li>
</ol>
  1. Preheat oven
  2. Mix ingredients
  3. Bake for 30 minutes

Nested Lists

HTML allows you to place lists inside other lists. This is useful when you want to include subcategories under main items.

html

<ul>
  <li>Fruits
    <ul>
      <li>Apples</li>
      <li>Bananas</li>
    </ul>
  </li>
  <li>Vegetables</li>
</ul>

When to Use Lists

Use lists whenever you need to present items — like to-do lists, ingredients, steps, or categories. Choose the right type: ordered if sequence matters, unordered if it doesn’t.

Track Your Progress 🚀

Learn more easily by tracking your progress completely for free.


Top tools

CodeHubBoardly NEWLinksy NEWChromo NEW

Select Language

Set theme

© 2025 ReadyTools. All rights reserved.