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

> Canonical HTML version: https://rocketvalidator.com/accessibility-validation/axe/4.7/listitem
> Attribution: Rocket Validator (https://rocketvalidator.com)
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

All list items (`li`) must have `ul` or `ol` parent elements.

To be considered valid, a list must have both parent and child entries. Element parents may consist of either a set of `ul` or `ol` tags. Within these tags, child elements must be declared using the `li` tag.

Screen readers alert users when they arrive at a list and inform them of its length. Announcing the number of items in a list and the current item helps listeners understand what they are hearing and what to anticipate as they continue to listen.

If you do not mark up a list with the correct semantic markup in a hierarchy, list elements cannot alert the listener that they are listening to a list if no parent indicates the presence of a list and its type.

<h3>What this Accessibility Rule Checks</h3>

Ensures `li` elements are used in a semantic way.
