Lists contain invalid child elements

Automated check list, run with axe-core

WCAG
1.3.1 Info and Relationships (Level A)
Severity
Moderate: a degraded experience
Typical effort
Quick win, under 1 hour
Category
Code quality

Who this affects

Screen reader users, who are told how many items a list contains.

Why it matters

Invalid nesting breaks the item count and the list semantics, so navigation menus built as lists stop behaving predictably.

How to fix it

Only <li> (plus script/template) may be direct children of <ul> and <ol>. Wrapper divs inside lists are the usual cause.

Check your own website

The free scan tests 3 pages against WCAG 2.2 A and AA in about 30 seconds. No sign-up.

Scan my website — free

Related checks: Code quality

All checks