<dl>'s contain only properly-ordered <dt> and <dd> groups, <script>, <template> or <div> elements

Definition lists use correct markup so screen readers can announce them properly.

On this page

Impact

ScanGov impact ratings

About

When definition lists are not properly marked up, screen readers may produce confusing or inaccurate output. [Learn how to structure definition lists correctly](https://dequeuniversity.com/rules/axe/4.10/definition-list).

Risks

Screen readers announce structured content incorrectly.

Why it's important

Helps screen readers announce structured content (tables, lists) in a logical order that users can understand.

User stories

As a screen reader user, I want tables and lists to be properly structured so that I can understand the relationships between items.

Code

Failing pattern:

<!-- Fail: invalid children inside dl -->
<dl>
  <p>Term: Definition</p>
</dl>

Passing pattern:

<!-- Pass: only dt/dd inside dl -->
<dl>
  <dt>Term</dt>
  <dd>Definition of the term</dd>
</dl>

Error

ScanGov messaging when a site fails a standard:

Failed: <dl>'s contain only properly-ordered <dt> and <dd> groups, <script>, <template> or <div> elements

Guidance

Indicators

On this page