Vanilla Breeze v0.7.4

Vanilla Breeze v0.7.4 released

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…

Read the release notes

dd

The definition description element provides the description, definition, or value associated with a term in a definition list.

Description

The <dd> element (definition description) provides the description, definition, or value for the preceding <dt> element(s) in a <dl> (definition list).

By default, <dd> elements are indented from the inline-start edge (the left in left-to-right text, the right in right-to-left) to visually distinguish them from their associated terms.

When to Use

  • Definitions for glossary terms
  • Values in metadata displays
  • Answers in FAQ sections
  • Values in key-value pairs
  • Product attribute values

When Not to Use

  • Outside of a <dl> element
  • Without a preceding <dt> element
  • For regular list content — use <li>

Basic Usage

Multiple Descriptions

A term can have multiple <dd> elements, each providing a different definition, meaning, or aspect.

Shared Description

Multiple terms can share the same <dd> description. This is useful for synonyms or alternate names.

Rich Content

Definition descriptions can contain any flow content, including paragraphs, lists, links, and more.

Accessibility

Screen Reader Behavior

  • Exposed with the definition role in browser accessibility trees
  • Whether a screen reader announces the link to the preceding <dt> varies; most simply read descriptions in source order
  • Rich content inside a description (lists, links, paragraphs) keeps its own semantics

Best Practices

  • Write clear, meaningful descriptions
  • Use appropriate semantic elements within descriptions
  • Ensure every <dd> is associated with at least one <dt>
  • Use lists or paragraphs within <dd> for complex content

CSS Properties

Property Value Description
margin-inline-start var(--size-l) Inline-start indentation to distinguish from terms

The indent is removed where a layout replaces it: in dl[data-striped] (padding instead), and in the data-variant="horizontal" and data-variant="stacked" layouts. Plain <div> or <div> wrappers keep it.

When a <dd> is followed by a <dt> (starting a new term group), dd + dt adds margin-block-start: var(--size-m) for visual separation.

Content Model

Permitted Content

  • Flow content (paragraphs, lists, figures)
  • Inline elements (links, code, emphasis)
  • Nested definition lists

Required Parent

Must be a child of <dl>, or of a <div> that is a child of <dl>.

Related

  • <dl> — Definition list container (required parent)
  • <dt> — Definition term (required sibling)
  • <ul> — Can be nested inside <dd> for detailed lists
  • <ol> — Can be nested inside <dd> for sequential details

Patterns Using This Element

The <dd> element is used in these patterns:

Key-Value / Description List

Display key-value pairs in horizontal or stacked layouts

↑