Apply class/id/lang on the div when the whole pair needs one hook.
Skip the wrapper when you do not need per-group styling or metadata.
Edge Cases & Pitfalls
Most issues come from wrong list type, fake indentation, or obsolete attributes.
semantics
Not for bullets or numbers
Use <ul> or <ol> for unordered and ordered items. Reserve <dl> for term/description groups.
misuse
Do not fake indentation
Using <dl>/<dd> only to indent text is incorrect. Set spacing with CSS margin or padding.
obsolete
Skip compact
The compact attribute is obsolete. Tighten lists with CSS instead.
structure
Keep valid groups
Each group needs dt then dd (one or more of each). Do not leave orphan terms or descriptions outside that pattern.
a11y
Screen readers vary
Announcement of <dl> differs by assistive tech. Prefer clear term/description text; be cautious adding ARIA term/definition roles on top of native markup.
Compatibility
Browser Support
The <dl> element is core HTML in every browser. It is not a Node.js, Deno, or Bun API.
✓ Baseline · Widely available
<dl>
Widely available since about July 2015 (and long before as description/definition lists). Chrome, Firefox, Safari, Edge, and Opera all support it fully.
98%Global support (approx.)
Google ChromeAll
Full support
Mozilla FirefoxAll
Full support
Apple SafariAll
Full support
Microsoft EdgeAll
Full support
OperaAll
Full support
Samsung InternetAll
Full support
Internet ExplorerAll
Supported
<dl>Widely supported
Bottom line: Safe to use everywhere for glossaries and key-value description lists. Skip obsolete compact.
Remember
Key Takeaways
Role:<dl> holds term/description groups with <dt> and <dd>.
Uses: glossaries, metadata pairs, and similar name-value content.
Flexible groups: many dt, many dd, or wrap a pair in <div>.
Avoid: obsolete compact, and using dl only for indentation.
One line: a good <dl> pairs real terms with real descriptions — not fake spacing.
UA style
Default CSS Settings
Typical user-agent styling for the list container (exact values can vary slightly by browser):
Adjust indent and spacing with CSS on dt/dd — never with obsolete compact.
Frequently Asked Questions
The dl element represents a description list: groups of terms (dt) and descriptions (dd). Common uses are glossaries and metadata key-value pairs.
One or more name-value groups: one or more dt elements followed by one or more dd elements. You may wrap each group in a div. Script and template elements are also allowed as intermixed content.
Yes. Place multiple dd elements after a dt (or after several dt elements that share those descriptions).
Yes. List multiple dt elements, then one or more dd elements that apply to all of them.
No for new pages. compact is obsolete. Control spacing with CSS such as line-height or margin instead.
No. Using dl or dd just to indent text is incorrect. Use CSS margin or padding on the right element for spacing.