incorrect-list
Rule Severity : Minor
Description
Content marked as a list (using <ul>
, <ol>
, <li>
or other tags and annotations) must correctly function as one. Non-lists shouldn’t be incorrectly marked as lists. Content incorrecly marked as lists can confuse users of screen readers and other assistive tools.
The incorrect-list
rule aligns with WCAG Success Criterion 1.3.1 (Info and Relationships), which requires that information, structure, and relationships conveyed through presentation must be programmatically determinable.
Examples
In the following example, a content that is not suited for lists is incorrectly marked as list items.
In the following corrected example, the content is placed inside <p>
tags, which is appropriate for this type of content:
How to fix?
To fix violations of the incorrect-list
rule, follow these steps:
- Identify content visually presented as a list.
- Check whether the content is indeed suitable to be represented as a list. If not, do not present them as lists.
- Do not have lists with only one item.
Reference
WCAG Success Criterion 1.3.1: Info and Relationships
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!