A longer quotation, set apart as its own block. Put the source URL in the cite attribute, and say who said it outside the quote, for example in a figcaption.
The best interface is the one the browser already ships.
HTML
<blockquote>
<p>The best interface is the one the browser already ships.</p>
</blockquote>
The caption of a figure. Make it the first or the last child of the figure.
Two shapes, drawn in SVG.
HTML
<figure>
<img src="shapes.svg" alt="A blue square and a grey circle" width="240" height="120">
<figcaption>Two shapes, drawn in SVG.</figcaption>
</figure>
Wraps an image, a diagram, a code listing or a quote that the text refers to, with an optional caption. It could move elsewhere on the page without breaking the text.
Two shapes, drawn in SVG.
HTML
<figure>
<img src="shapes.svg" alt="A blue square and a grey circle" width="240" height="120">
<figcaption>Two shapes, drawn in SVG.</figcaption>
</figure>
Styled by elements/text.css, with no class. LUZ makes a bare figure a padded surface. The .luz-figure component adds more.
Three ways to use <dl>, built on the styles above. You may group each <dt> with its <dd> in a <div>: it is valid HTML and LUZ keeps the same space between groups.
Metadata
Facts about one thing, such as a file or an order. One name, one value, each pair in its own div so a script or a style can reach the pair.
A name with more than one value stays one group: the screen reader announces each value in turn.
Glossary
Terms and their meanings. Each term is a dt with a dfn inside, and gets an id so other pages can link to its entry.
Design token
A named value, such as a color or a space, that components read.
Color mode
One set of color values for the whole page.
Light, dark and high contrast are the three LUZ ships.
HTML
<dl>
<dt id="term-token"><dfn>Design token</dfn></dt>
<dd>A named value, such as a color or a space, that components read.</dd>
<dt id="term-mode"><dfn>Color mode</dfn></dt>
<dd>One set of color values for the whole page.</dd>
<dd>Light, dark and high contrast are the three LUZ ships.</dd>
</dl>
Link to a term with #term-token. A term may have more than one meaning: repeat the dd.
Before you rely on it
Keep the default display of the <dl> and of its groups. Setting flex or grid on list elements has made some browser and screen reader pairs drop the list semantics; see CSS display properties versus HTML semantics. Lay the pairs out on a wrapper you control, and test the result.
HTML allows a <div> inside a <dl> only around a name and its values. A source that tested a plain div wrapper found it can cause trouble for screen readers in some browsers ( Use of div in dl, no results given there). LUZ has not tested the grouped markup with NVDA, JAWS, VoiceOver, TalkBack or Orca.
For a table of many values per row, use a table, not a description list.