<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:

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