Accessibility · Lists and tables

List item outside a list

This page has a list item inside a plain div, with no ul or ol around it, so it is not part of any list.

How this page is built

The line below is an li element inside a plain div. There is no ul, ol or menu around it.

  • A list item with no list around it
  • Why it matters

    List items only make sense inside a list. Without one, screen readers cannot say how many items there are or where the list ends. This often comes from a CSS reset or component that removes list semantics to restyle a menu.

    Accessibility problems matter for search too. Search engines read the same code that screen readers read. Many crawl tools now run accessibility checks next to their SEO checks. A page that works for everyone is easier to use, and people stay on it for longer.

    How to check it

    Run an automated checker such as axe DevTools, Lighthouse or WAVE, or a crawler with accessibility checks, on this page. axe reports this under the rule listitem.

    How to fix it

    Put list items inside a <ul> or <ol>. If a component removes list semantics to restyle a menu, use CSS for the look and keep the list role.

    Back to all tests