# <ul> and <ol> must only directly contain <li>, <script> or <template> elements

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

Lists must be correctly marked up, which means they cannot contain content components other than `li` elements.

Lists are read aloud in a specific manner by screen readers. This feature makes lists easier to comprehend, but it will only function if the lists are correctly organized.

When content elements other than list items are contained within a set of list elements, screen readers are unable to indicate to the user that they are listening to list items.

Any other content elements are invalid.

Although non-content elements such as `script`, `template`, `style`, `meta`, `link`, `map`, `area`, and `datalist` are allowed in lists, content elements other than `li` are not.

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

Ensures that lists are properly constructed.
