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

How to fix the definition-list accessibility rule. Page structure and lists.

What this rule checks

Ensure <dl> elements are structured correctly

Who is affected

A <dl> contains elements other than <dt>/<dd> groups, so it is announced incorrectly.

How to fix it

Only use <dt> and <dd> (optionally wrapped in <div>) inside <dl>.

WCAG success criteria

When this rule fails, the page fails:

Find it on your own page

Scan a web page and the report lists every element that fails this rule, with screenshots outlining where they are, the code, and a selector you can paste into your browser’s developer tools.

More detail