<li> elements must be contained in a <ul> or <ol>
How to fix the listitem accessibility rule. Page structure and lists.
What this rule checks
Ensure <li> elements are used semantically
Who is affected
An <li> isn't inside a <ul> or <ol>, so it isn't announced as part of a list.
How to fix it
Wrap list items in a <ul> or <ol>.
WCAG success criteria
When this rule fails, the page fails:
- 1.3.1 Info and Relationships (Level A, WCAG 2.0, 2.1, 2.2)
Find it on your own page
Scan a web page and the report lists every element that fails this rule, with screenshots outlining where they are, the code, and a selector you can paste into your browser’s developer tools.
More detail
- Deque University’s reference for listitem (the makers of axe-core, the engine our scanner uses)
- All fix guides