Aral Code

Lists & Tables Lesson 21 of 42

HTML Lists — Unordered, Ordered and Description Lists

Make bulleted lists with ul, numbered lists with ol, and description lists with dl. Learn nested lists, list attributes and when to use each type.

Shopping lists, step-by-step instructions, class rankings, a glossary of terms — lists are everywhere. HTML has three kinds of lists, and choosing the right one makes your content clearer for every reader.

Unordered lists (bullets)

Use <ul> (unordered list) when the order doesn't matter. Each item goes inside <li> (list item).

Example A grocery list
<h3>Pabili sa palengke</h3>
<ul>
  <li>1 kilo bigas</li>
  <li>Kalahating kilo baboy</li>
  <li>Toyo at suka</li>
  <li>Bawang at sibuyas</li>
  <li>Dahon ng laurel</li>
</ul>

Can you guess the dish? Adobo, of course. The items can be bought in any order, so a bulleted list is right.

Ordered lists (numbers)

Use <ol> (ordered list) when the order matters: steps, rankings, instructions. The browser numbers the items automatically.

Example Steps to cook rice in a pot
<h3>How to Cook Rice</h3>
<ol>
  <li>Wash the rice two or three times.</li>
  <li>Add water — about one knuckle above the rice.</li>
  <li>Boil over medium heat.</li>
  <li>When the water is almost gone, lower the heat and cover the pot.</li>
  <li>Wait 10–15 minutes, then fluff with a spoon.</li>
</ol>

Try adding a new <li> in the middle using the editor. The numbers update automatically — no need to renumber anything by hand.

Ordered list options

AttributeExampleResult
type<ol type="A">A, B, C…
type<ol type="a">a, b, c…
type<ol type="I">I, II, III…
start<ol start="5">Starts counting at 5
reversed<ol reversed>Counts down
Example Multiple-choice style and a countdown
<p>Who wrote <cite>Noli Me Tángere</cite>?</p>
<ol type="A">
  <li>Andres Bonifacio</li>
  <li>José Rizal</li>
  <li>Apolinario Mabini</li>
</ol>

<p>Top 3 in the quiz bee:</p>
<ol reversed>
  <li>Ana – 3rd place</li>
  <li>Ben – 2nd place</li>
  <li>Carla – 1st place</li>
</ol>

Nested lists

A list item can contain another whole list. This is great for outlines and menus. Put the inner list inside the <li>, before its closing tag.

Example A nested list
<ul>
  <li>Luzon
    <ul>
      <li>Ilocos Region</li>
      <li>Cordillera</li>
      <li>Bicol Region</li>
    </ul>
  </li>
  <li>Visayas
    <ul>
      <li>Western Visayas</li>
      <li>Central Visayas</li>
    </ul>
  </li>
  <li>Mindanao
    <ul>
      <li>Davao Region</li>
      <li>Northern Mindanao</li>
    </ul>
  </li>
</ul>

Description lists

A description list <dl> pairs a term <dt> with its description <dd>. Use it for glossaries, FAQs, and "label: value" information.

Example A mini ICT glossary
<dl>
  <dt>HTML</dt>
  <dd>The language used to structure web pages.</dd>

  <dt>Browser</dt>
  <dd>A program that opens and displays web pages, like Chrome or Safari.</dd>

  <dt>URL</dt>
  <dd>The address of a page on the internet.</dd>
</dl>

Which list should I use?

  • Does the order matter? Yes → <ol>. No → <ul>.
  • Are you pairing a term with an explanation? → <dl>.

Lists are used for menus too

Here's a secret: the navigation menus on most websites — even the sidebar of this site — are unordered lists of links, styled with CSS so the bullets disappear.

Example A simple navigation menu
<nav>
  <ul style="list-style: none; padding: 0; display: flex; gap: 16px;">
    <li><a href="#">Home</a></li>
    <li><a href="#">Lessons</a></li>
    <li><a href="#">About</a></li>
    <li><a href="#">Contact</a></li>
  </ul>
</nav>

Quick Quiz

Check what you learned. Walang grade ito, practice lang. 🙂

1. Which list is best for steps in a recipe?
2. Which element holds each item in <ul> and <ol>?
3. How do you make an ordered list that uses A, B, C?
4. In a description list, which element holds the term?
5. Where should a nested list go?

By Sir Reyel · Last updated 2026-12-04