Unordered, Ordered, and Nested Lists

Choose the list whose meaning matches the relationship between items.

Order changes meaning only sometimes

Features: order is not essential

  • Keyboard-friendly controls
  • Responsive layout
  • Readable colour contrast

Instructions: sequence matters

  1. Read the task.
  2. Write meaningful HTML.
  3. Add presentation with CSS.
  4. Test at narrow and wide widths.

Nest a sublist inside its owning item

The nested list belongs inside the parent li, after its label.

Read the Phase 9 gauge

Important HTML

Use ul when order does not matter and ol when sequence carries meaning.

<ul>
  <li>Keyboard-friendly controls</li>
  …
</ul>
<ol>
  <li>Read the task.</li>
  …
</ol>