Rule library Lists and structure

<ul> and <ol> must only directly contain <li>, <script> or <template> elements

listWCAG 2.0 A

Ensure that lists are structured correctly

Who this affects

List markup is malformed — a <ul>/<ol> contains elements other than <li>.

How to fix it

Ensure only <li> elements are direct children of lists; move wrappers inside the <li>.

Effort Low · ~15 min

Before and after

Fails

<ul>
  <div>Delivery</div>
  <div>Returns</div>
</ul>

Passes

<ul>
  <li>Delivery</li>
  <li>Returns</li>
</ul>

Where this sits in the standard

WCAG success criterionLevelEN 301 549 clause
1.3.1 Info and RelationshipsA301-549, 9.1.3.1

EN 301 549 clause 9 applies these criteria to web content. The published version referenced by the European Accessibility Act is V3.2.1, which incorporates WCAG 2.1 level A and AA. More on the standard.

How to check it by hand

Ask the screen reader to list the page's lists. A group announced as "list, 6 items" is navigable; the same content in unmarked divs is not.

Automated testing settles roughly a third of the WCAG success criteria. This rule is one an automated tool detects reliably — but a clean automated result is not proof of conformance.

Reference

Deque's technical write-up for this rule: list

See whether your site trips this rule

Paste a URL. We open it in a real browser, dismiss the cookie wall and run the full EN 301 549 rule set. No account, no card.

Run a free scan All rules