Language: EN

Lists are built incorrectly

Message shown by axe and Lighthouse: <ul> and <ol> must only directly contain <li>, <script> or <template> elements · list · WCAG 1.3.1

What it means and why it matters

Screen readers announce the number of items in a list; broken list markup hides this structure (WCAG 1.3.1).

How to fix it

<ul>/<ol> may only contain <li> (and script/template) elements directly.

Code example

Before

<ul>
  <div>Shipping</div>
  <li>Returns</li>
</ul>

After

<ul>
  <li>Shipping</li>
  <li>Returns</li>
</ul>

In our study

Share of online shop home pages on which axe-core automatically detected at least one failure of this rule. The number of shops is in brackets.

Lists are built incorrectly

CountryShops checkedWith this failure
Poland8423 (27%)
Czechia8613 (15%)
Slovakia9415 (16%)
Croatia9211 (12%)
Total, wave 135662 (17%)
Germany12312 (10%)
Austria979 (9%)
Total, wave 222021 (10%)
Netherlands1007 (7%)
Spain9416 (17%)
France1019 (9%)
Italy10110 (10%)
Total, wave 339642 (11%)

Method, limits and all results: Online shop study.

Find this error on your website

Run a free check of any page — results in seconds, with fix instructions.

Check a page for free

All accessibility errors

Order a paid plan

Leave your email and we'll contact you as soon as the plan can be ordered.