Camp 2 · Step 5 of 14
Lists
Bulleted, numbered, and nested lists — the invisible workhorse behind menus, steps, and navigation.
10 min+50 XP
Once you learn to see them, lists are everywhere: navigation menus, recipe steps, search results, shopping carts. HTML gives you two flavors.
Unordered lists: bullets
When order doesn't matter, use <ul> with an <li> (list item) per entry:
HTML
Live preview
Ordered lists: numbers
When sequence matters — steps, rankings — use <ol>:
HTML
Live preview
Same <li> children; only the wrapper changes. The browser numbers them
for you — add, remove, reorder freely and the numbers stay right.
Nesting lists
Put a whole list inside an <li> to create sub-items:
HTML
Live preview
Checkpoint
A recipe's steps should use which structure?
Checkpoint
Which element holds each individual entry in both list types?
What's next
The element that puts the "hyper" in hypertext: links.