<ul> and <ol> must only directly contain <li> content elements
Log in (Premium content) Request a demo
Lists must be marked up correctly, meaning they must not contain content elements other than
The Algorithm, in Simple Terms
Why this is Important
Screen readers have a specific way of announcing lists. This feature makes lists clearer to understand, but will only work if lists are properly structured. Properly-structured lists only include <li> content elements.
How to Fix the Problem
Ensure all ordered and unordered lists (defined by
<ol> elements) contain only
<li content elements.
- HTML 4
- HTML 5