Skip to content

Rule · Accessibility

<li> is not inside a list

a11y/listitemwarnvoid a11yupdated

Why it matters

An <li> outside a list is not announced as a list item, so users lose the item count and grouping.

How to fix it

Place every <li> inside a <ul>, <ol> or <menu> parent.

References

void a11y reports 48 rules in this category. WCAG 2.2 AA through axe-core, plus checks axe can't do alone: visible keyboard focus, 24/44px target size on mobile, 320px reflow and disabled zoom.