</> ConvertAtlas Developer Tools
Building Content Lesson 5 Beginner 10 min

Lists

Ordered, unordered and description lists — for menus, steps, features and more.

Lists are everywhere on the web — navigation menus, feature lists, step-by-step instructions, search results. HTML gives you three kinds, and they are all simple to use.

Unordered lists

An unordered list is a set of items where the order does not matter — like a shopping list. Use <code>&lt;ul&gt;</code> for the list and <code>&lt;li&gt;</code> for each item. Browsers show bullet points by default.

HTML · editable
An unordered (bulleted) list — try adding an item.

Ordered lists

When order matters — steps in a recipe, a ranking, instructions — use an ordered list with <code>&lt;ol&gt;</code>. Browsers number the items automatically, so you never type the numbers yourself.

HTML · editable
An ordered (numbered) list.
Which list should you use?
Unordered <ul>
  • Order does not matter
  • Shows bullets
  • Menus, features, tags
  • Most common list
Ordered <ol>
  • Order matters
  • Shows numbers
  • Steps, rankings, recipes
  • Numbered automatically

Nested lists

You can put a list inside a list item to create sub-items — perfect for multi-level menus or outlines. Just place a new <code>&lt;ul&gt;</code> or <code>&lt;ol&gt;</code> inside an <code>&lt;li&gt;</code>.

HTML · editable
A nested list.

Description lists

A description list pairs terms with descriptions — useful for glossaries or metadata. Use <code>&lt;dl&gt;</code> for the list, <code>&lt;dt&gt;</code> for each term, and <code>&lt;dd&gt;</code> for its description.

HTML · editable
Menus are listsNavigation menus are almost always built as an unordered list of links inside a <nav>. It is the standard, accessible pattern you will see everywhere.
Try it yourself: nested menu

Build a two-level nested menu in the editable box: three top-level items, and give one of them a sub-list of two items. Then add a separate ordered list of three steps.

Quick quiz

1. Which list is numbered automatically?

2. What element is a single list item?

3. You have a shopping list where order does not matter. Use…

4. How do you nest a list?

Key takeaways
  • Use <ul> for unordered (bulleted) lists, <ol> for ordered (numbered).
  • Each item is an <li>; the browser handles bullets and numbers.
  • Nest a list inside an <li> for sub-items.
  • Description lists (<dl>/<dt>/<dd>) pair terms with descriptions.