SeriousWCAG 1.3.1 · Level A
listList contains things that aren’t list items
A <ul> or <ol> that directly contains <div>s or other elements is announced with the wrong number of items, or not as a list at all. Wrap each item in an <li>.
Who it hurts
Screen reader users, who hear “list, 5 items” and use it to judge the length of menus and product grids.
Common in navigation menus and product grids built by page builders.
How to fix it
Pick your stack. Review every change before you ship it.
Before
<ul>
<div><a href="/shop">Shop</a></div>
</ul>After
<ul>
<li><a href="/shop">Shop</a></li>
</ul>Check it by hand too
Check that lists that look like lists are marked up as lists, and that layout-only lists are not.
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
- 1.3.1 Info and Relationships (Level A). Understanding 1.3.1