0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…
The definition term element represents the term, name, or key in a term-description group within a definition list.
Description
The <dt> element (definition term) specifies the term, name, or key in a <dl> (definition list). It must be followed by one or more <dd> elements that describe or define the term.
By default, <dt> elements are styled with bold font weight to visually distinguish them from their descriptions.
<dl><dt>Browser</dt><dd>A software application for accessing information on the World Wide Web.</dd><dt>Server</dt><dd>A computer or program that provides services to other computers.</dd></dl>
Multiple Terms
Multiple <dt> elements can share a single <dd> description. This is useful for synonyms, abbreviations, or alternate names.
Multiple terms sharing description
123456789
<dl><dt>API</dt><dt>Application Programming Interface</dt><dd>A set of protocols and tools for building software applications.</dd><dt>DOM</dt><dt>Document Object Model</dt><dd>A programming interface for web documents.</dd></dl>
Term with Multiple Descriptions
A single <dt> can be followed by multiple <dd> elements for terms with multiple meanings.
Term with multiple descriptions
123456
<dl><dt>Cache</dt><dd>A hardware or software component that stores data for faster future access.</dd><dd>A collection of items hidden away in a secret place.</dd><dd>In web development, temporary storage of web documents.</dd></dl>
Rich Content in Terms
Definition terms can contain inline elements like <code>, <abbr>, <dfn>, or links.
Rich content in terms
1234567
<dl><dt><code>console.log()</code></dt><dd>Outputs a message to the browser's developer console.</dd><dt><abbrtitle="HyperText Transfer Protocol">HTTP</abbr></dt><dd>The foundation of data communication for the World Wide Web.</dd></dl>
Using dfn Element
For the defining instance of a term, wrap it in <dfn>:
Using dfn inside dt
1234
<dl><dt><dfn>Semantic HTML</dfn></dt><dd>HTML that introduces meaning to the web page rather than just presentation.</dd></dl>
Accessibility
Screen Reader Behavior
Exposed with the term role in browser accessibility trees
Whether a screen reader announces the link to the following <dd> elements, or offers group navigation, varies by browser and screen reader
The bold styling helps sighted users identify terms
Best Practices
Keep terms concise and clear
Ensure every <dt> has at least one associated <dd>
Consider using <dfn> inside <dt> for the defining instance of a term
CSS Properties
Property
Value
Description
font-weight
600
Semi-bold to distinguish terms from descriptions
When a <dt> follows a <dd> (starting a new term group), dd + dt adds margin-block-start: var(--size-m) for visual separation.
Content Model
Permitted Content
Flow content, but no <header>, <footer>, sectioning, or heading elements