Skip to main content
On this page

Styled list elements for ordered, unordered, and definition lists

When to use​

  • When presenting multiple items that benefit from visual separation rather than running together as prose
  • When items have an inherent order, priority, or sequence that matters: use an ordered list (Ol)
  • When items are discrete and parallel but have no meaningful order: use an unordered list (Ul)
  • When presenting term-and-definition pairs such as a glossary or a set of key facts: use a definition list (Dl with Dt and Dd)

When not to use​

  • For two or fewer items - these read more naturally as prose. Use Text (P) instead.
  • For key-value data about an entity - use Summary List instead, which is built for structured data rows and provides better semantics for that pattern.
  • For navigation links - use the appropriate navigation component rather than a list of Text Links.

Anatomy​

Unordered and ordered lists:

  1. List container (Ul or Ol)
  2. List item (Li)

Definition lists:

  1. Definition list container (Dl)
  2. Term (Dt)
  3. Definition (Dd)

Basic usage​

Loading...
Edit live code
<Ol>
    <Li>An example of body text.</Li>
    <Li>
        An example with <Em>emphasis</Em> and <Strong>strong text</Strong>.
    </Li>
</Ol>

Variants and features​

Unordered list​

Use Ul when the items are discrete but their order carries no meaning. Items are presented with a disc bullet marker.

Loading...
Edit live code
<Ul>
    <Li>An example of body text.</Li>
    <Li>
        An example with <Em>emphasis</Em> and <Strong>strong text</Strong>.
    </Li>
</Ul>

Ordered list​

Use Ol when the sequence matters, for example a set of steps or a ranked priority list. Items are numbered automatically.

Loading...
Edit live code
<Ol>
    <Li>Take a meter reading</Li>
    <Li>Enter it in your account</Li>
    <Li>Wait for your updated bill</Li>
</Ol>

Definition list​

Use Dl with Dt (term) and Dd (definition) for glossaries and term-definition pairs. Each term renders in semi-bold, and each definition follows immediately below it.

For structured data about an entity (such as an account summary), use Summary List instead.

Loading...
Edit live code
<Dl>
  <Dt>MPAN</Dt>
  <Dd>A unique 13-digit number that identifies your electricity supply point.</Dd>
  <Dt>MPRN</Dt>
  <Dd>A unique number that identifies your gas supply point.</Dd>
</Dl>

Inline formatting​

Use Strong or Em from the Text component inside Li, Dt, or Dd elements to add emphasis where needed.

Loading...
Edit live code
<Ul>
  <Li><Strong>Direct debit</Strong> (taken on the 1st of each month)</Li>
  <Li>Pay on receipt (pay when you receive your bill)</Li>
</Ul>

Nested lists​

Lists can be nested by placing a Ul or Ol inside a Li. Use nesting sparingly. More than two levels is usually a sign the content needs restructuring.

Loading...
Edit live code
<Ul>
  <Li>Electricity
    <Ul>
      <Li>Standing charge</Li>
      <Li>Unit rate</Li>
    </Ul>
  </Li>
  <Li>Gas
    <Ul>
      <Li>Standing charge</Li>
      <Li>Unit rate</Li>
    </Ul>
  </Li>
</Ul>