Skip to main content
Raasta
SeriousWCAG 1.3.1 · Level Alistitem

List item outside a list

An <li> that isn’t inside a <ul> or <ol> is not announced as part of a list. Put list items inside a list element.

Who it hurts

Screen reader users, who lose the count and grouping of items.

Usually caused by a template that outputs <li> items into a <div>.

How to fix it

Pick your stack. Review every change before you ship it.

Before

<div class="links">
  <li><a href="/faq">FAQ</a></li>
</div>

After

<ul class="links">
  <li><a href="/faq">FAQ</a></li>
</ul>

Check it by hand too

Check templates that render repeated items, such as menus and footers.

Automated checks find a large share of accessibility problems, but not all of them. Passing this check does not on its own make a page compliant.

WCAG reference