li elements must be contained in a ul or ol

Log in (Premium content) Request a demo

Rule Description

All list items (<li>) must be contained within <ul> or <ol> parent elements.

The Algorithm, in Simple Terms

Ensures that every list item is used semantically

Why this is Important

For a list to be valid, it must have both parent and child elements. Parent elements can either be <ul> or <ol> elements. Child elements must be declared inside of these elements using the <li> tag.

How to Fix the Problem

Ensure that all list item <li> elements are wrapped inside of <ul> or <ol> parent elements.

Compliance Data & User Impact

User Impact: Critical
Disabilities Affected:
  • Blindness
  • Deafness
  • Mobility/Dexterity
Issue Type:
  • WCAG 2.0 (A): MUST
  • WCAG 2.1 (A): MUST
WCAG Success Criteria:
  • 1.3.1 Info and Relationships
Section 508 Guidelines:
  • Not applicable

Related Deque University Course Pages

Other Related Resources

Additional Information

Relevant Technologies:
  • HTML 4
  • HTML5
Test Reliability: Automated testing is possible, with high accuracy
Rule ID: listitem