On the <dl>

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Very little, this is a small HTML semantics tip, useful only if you write description lists and care about valid markup and screen reader behaviour.

Read this as

Ben Meyer's article explains the HTML element called the description list, written as <dl>, used for pairs like terms and credits. Since a draft in 2008 it has officially been called 'description lists' rather than 'definition lists'. A term can be followed by multiple descriptions, and you may group them in a div for styling. Simon Willison says he learned several of these points himself.

This is a short technical tip with no business, cost or competitive implications. It documents little-known facts about the HTML description list element: multiple descriptions per term, optional div grouping, and ARIA labelling, with the 'definition list' name dropped back in a 2008 HTML5 draft. Only web developers and accessibility teams need care.

Citing Ben Meyer's post, Willison lists four <dl> facts: one <dt> may be followed by multiple <dd> elements; dt/dd pairs may optionally be wrapped in a <div> (only a div) for styling; the list can be labelled via aria-labelledby, as shown in a credits example; and the element has been named 'description list' rather than 'definition list' since the January 2008 HTML5 draft. Adrian Roselli's note on screen reader support is linked. No benchmarks or tools are involved.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

<dl> <dt> <dd> HTML5 ARIA

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.