<li> elements must be contained in a <ul>, <ol>, or <menu>

adaptable/listitem-parent · WCAG 1.3.1 · Level A

<li> elements must be contained in a <ul>, <ol>, or <menu>.

List items (<li>) only have semantic meaning inside a list container (<ul>, <ol>, or <menu>). Without a list parent, screen readers will not announce 'list with N items' or allow users to skip between items using list navigation shortcuts. Wrap <li> elements in the appropriate list container — <ul> for unordered lists, <ol> for ordered/numbered lists.

Scan a page or repo for issues like this · All rules

Introduced in @accesslint/core v0.8.0