Approved catalog listing
SKILL #2053
skillshunter.net
Home / Content & Editorial / Ensure Proper List Structure for Accessibility
Listing Approved Approved on: November 23, 2026

Ensure Proper List Structure for Accessibility

Verify that HTML lists use correct semantic structure with `<ul>` and `<ol>` containing only `<li>` elements to improve accessibility for screen readers and assistive technologies. The deliverable is a validated HTML structure with corrected list elements.

Rate this skill

No ratings yet

Editor's Note

Ensure that nested lists are also properly contained within an `<li>` element. Before validation, confirm that the HTML is rendered and accessible, and use browser accessibility tooling or assistive technology to verify the fix.

When to Use It

  • Reviewing HTML markup for accessibility compliance
  • Auditing interactive components for screen reader compatibility
  • Checking design-system patterns for semantic structure

SKILL.md

SkillsHunter provides this listing for informational purposes only. Review the skill’s source, license, and required permissions before use. You are responsible for deciding whether to install or run it. Terms of Use

↓ Download .md
---
name: list-structure
description: "Use when reviewing rendered HTML, interactive components, or design-system patterns related to Use correct list structure. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant."
metadata:
  category: accessibility
  priority: medium
  difficulty: intermediate
  estimatedTime: "10"
  source: frontendchecklist.io
  url: https://frontendchecklist.io/rules/accessibility/list-structure
---

# Use correct list structure

Screen readers rely on a specific parent-child relationship for lists to correctly announce the number of items and the user's current position within the list.

## Quick Reference

- Unordered (`<ul>`) and ordered (`<ol>`) lists must only contain `<li>` elements
- Do not put other elements like `<div>` or `<p>` directly inside a list
- Ensure nested lists are also properly contained within an `<li>` element

## Check

Check the structure of all lists to ensure only `<li>` elements are direct children of `<ul>` or `<ol>`.

## Fix

Remove or move any non-`li` elements from within `<ul>` and `<ol>` tags.

## Explain

Explain why assistive technology needs a consistent list structure to provide accurate navigation information.

## Code Review

Review the rendered markup and interactive states that affect Use correct list structure. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.

---

For full implementation details, code examples, and framework-specific guidance,
see `references/rule.md`.

Rule page: https://frontendchecklist.io/rules/accessibility/list-structure

Community Reviews & Field Notes

Tried this skill on your own project? Share the model you used and the results you got.

Add Your Review

Approved reviews appear publicly with the name or role you enter. See the Privacy Notice.