Fix "List item outside a list" in HTML
Why it's a problem
A <li> with no <ul> or <ol> parent is not announced as part of a list: the user loses the item count and their position. It is the failure that repeats most per page in our measurements — 147 occurrences across 49 pages.
How to fix it — HTML
Wrap the <li>s in a <ul> or an <ol>. If the markup comes from a component, check that the container was not replaced by a <div> during a redesign.
<div class="menu">
<li><a href="/tarifs">Tarifs</a></li>
<li><a href="/blog">Blog</a></li>
</div><ul class="menu">
<li><a href="/tarifs">Tarifs</a></li>
<li><a href="/blog">Blog</a></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