Text
List (description)
Published on
Description
Description lists associate terms with descriptions, suitable for glossaries, metadata, and key-value pairs. They offer better semantic structure than tables for this type of content.
Example
Accessibility
- Screen reader support for
<dl>is adequate across browsers, though Safari has inconsistencies with nested description lists. - iOS VoiceOver (14+) supports description list navigation.
- CSS
list-styleon<dl>elements destroys semantics. Avoid applying list-related CSS to description lists. - If screen readers must announce all nodes or users must navigate via list commands, consider alternative markup.
References
- Brief Note on Description List Support (opens in new tab) — Adrian Roselli
- VoiceOver on iOS 14 Supports Description Lists (opens in new tab) — Adrian Roselli
Related
- Unordered list — for simple lists
- Table — for complex tabular data
Variables
None for lists