--- name: listitem description: "Use when applies to HTML documents with `
  • ` elements. Also applies to custom ARIA lists where `role='listitem'` must be owned by `role='list'`. Common violations occur in templating systems where list markup is split across components or in CSS resets where developers use `
  • ` for layout without proper list parents." metadata: category: accessibility priority: medium difficulty: beginner estimatedTime: "5" source: frontendchecklist.io url: https://frontendchecklist.io/en/rules/accessibility/listitem --- # Place list items within list containers When a `
  • ` element exists outside a list container, screen readers lose the ability to announce critical context: NVDA and JAWS will not say 'list of 5 items' or 'item 2 of 5' because there is no list context. VoiceOver may announce the orphan `
  • ` as plain text without any group context, stripping users of the structural information that helps them understand how many items exist and where they are in the list. ## Quick Reference - Every `
  • ` element must have a direct parent of `