Free scan

Fix "Badly structured list" in HTML

Why it's a problem

A screen reader announces “list, 7 items” and offers a shortcut to leave it. If foreign elements sit between the <li>s, the count is wrong and list navigation breaks.

How to fix it — HTML

A <ul> or <ol> must only have <li> as direct children (plus, optionally, <script> or <template>). Move any other content INSIDE an <li>.

Avoid
<ul>
  <li>Scan gratuit</li>
  <hr>
  <p>Nos offres :</p>
  <li>Surveillance continue</li>
</ul>
Correct
<p>Nos offres :</p>
<ul>
  <li>Scan gratuit</li>
  <li>Surveillance continue</li>
</ul>

Check your site in 30 seconds

Conformly detects this kind of issue across all your pages, continuously, and alerts you on every regression.

Free scan

Other fixes