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>

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.