<li> elements must be inside a <ul> or <ol>

List items (`<li>`) must sit inside a `<ul>`, `<ol>` or `<menu>`. Outside a list, assistive technology cannot announce them as items, count them or let people move between them.

Rule IDlistitem
ImpactSerious
Success criterion 1.3.1 Info and Relationships · A
StandardsWCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549
Readabler fix Fixed automatically

Example

Before
<div class="breadcrumbs">
  <li><a href="/">Home</a></li>
  <li><a href="/garden">Garden</a></li>
  <li>Watering cans</li>
</div>

A screen reader reads the links as loose items, with no list and no position in the trail.

After
<ol class="breadcrumbs">
  <li><a href="/">Home</a></li>
  <li><a href="/garden">Garden</a></li>
  <li>Watering cans</li>
</ol>

A screen reader announces “list, 3 items” and lets the user move through the trail.

Why it matters

An <li> is defined as part of a list. Its parent tells browsers that the items belong together, how many there are and in what order. Without that parent, screen readers may still say “list item” but cannot give a count or position, or they drop the list meaning altogether.

Blind visitors use list information to understand navigation, breadcrumbs, search results and product grids, and to skip past them quickly. Without it, a menu of 20 links becomes a long, unstructured stream of words. The visual layout gives no hint of the problem, so it often slips through design reviews.

How to fix it

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

The wrapper is a <div> or <nav>. Replace the <div> with a list element, or keep the <nav> and add a list inside it:

<nav aria-label="Breadcrumb">
  <ol>
    <li><a href="/">Home</a></li>
    <li><a href="/garden">Garden</a></li>
  </ol>
</nav>

A component renders items without a list. Check the template of the menu, tab bar or card grid, and make the outer element a <ul>.

The list has a role that removes its meaning. A <ul role="navigation"> or <ul role="tablist"> is no longer a list, so its <li> children fail. Move the role to a wrapper, or use role="none" on the <li> when the items are, for example, tabs:

<ul role="tablist">
  <li role="none"><button role="tab" aria-selected="true">Details</button></li>
</ul>

You only wanted bullets. If the content isn't a list, use <p> elements and add bullets with CSS.

Checklist

  1. Place every <li> inside a <ul>, <ol> or <menu>.
  2. Wrap navigation and breadcrumb items in a list inside <nav>.
  3. Don't give a list a role that removes its list meaning.
  4. Check component templates for missing list wrappers.

How the check works

The check looks at every <li> without a role attribute. It passes when the parent is a <ul>, <ol> or <menu>, an element with role="list", or a parent with role="none" or "presentation". Any other parent fails, such as a <div>, or a <ul> that was given a different role.

Resources

Updated October 27, 2026