Accessibility · Lists and tables
List contains invalid children
A list on this page has an item whose role is set to none, so the list holds a child that is not a list item and its structure breaks.
How this page is built
The list below has three items. The second has role="none", which removes its list item role.
- First item
- Second item, with its list item role removed
- Third item
Why it matters
Screen readers announce a list with its number of items and let users move from item to item. When a list holds children that are not list items, the count is wrong and some content may be skipped.
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 list.
How to fix it
Make every direct child of <ul> or <ol> an <li> with its native role. Move other content outside the list or inside an item.