Skip to main content
🎉 A11y Issue Detection Agent is now live! Detect accessibility issues like a WCAG expert with AI. Try now!
No Result Found
Connect and get help from 7,000+ developers on our Discord community. Ask the CommunityAsk the Community

definition-list

Severity: Serious

Description

<dl> (definition list) elements should contain only properly structured <dt> (definition term) and <dd> (definition description) elements as direct children, optionally wrapped in <div> grouping elements. Including other elements directly inside a <dl> breaks the semantic structure of the list, making it difficult for screen readers and other assistive technologies to interpret the term-and-description relationships correctly.

Example

In the following example, the <dl> contains a <p> element as a direct child, which is invalid markup. Screen readers may misinterpret the list structure, breaking the definition-list rule.

Incorrect sample - invalid child element inside dl
Copy icon Copy

In contrast, the following code snippet contains only valid <dt> and <dd> children inside the <dl>. Screen readers can correctly identify each term and its definition, and the code does not break the definition-list rule.

Correct sample - valid dl structure
Copy icon Copy

How to fix?

Check if your <dl> elements contain any direct children other than <dt>, <dd>, or <div> (used for grouping). If so, make the following changes:

  • Move any non-<dt>/<dd> content — such as headings, paragraphs, or spans — outside the <dl> element.
  • Ensure every <dl> contains at least one <dt> followed by one <dd>.
  • If you need to group term-description pairs, wrap them in a <div> inside the <dl>.

Reference

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle