Screen readers depend upon lists being structured properly,
to keep users informed of content within the lists.
The only content lists should contain should be within
They can also contain script supporting elements (
Lighthouse reports when lists contain any other content elements that shouldn't be within the lists:
How to fix this problem
To fix this problem,
remove any elements in lists that don't belong there.
Ordered and unordered lists must only contain
Valid lists must have parent elements (
ol elements) and child elements (
Any other content elements are invalid.
Learn more in
<ol> must only directly contain
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.