# 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.

**Canonical URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-list-structure-4383522fba6d

**JSON URL:** https://skillshunter.net/api/public/v1/skills/github-thedaviddias-front-end-checklist-skills-list-structure-4383522fba6d

**Markdown URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-list-structure-4383522fba6d.md

**Instructions download URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-list-structure-4383522fba6d/download

**Category:** Content & Editorial

**Source URL:** https://github.com/thedaviddias/Front-End-Checklist/blob/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e/skills/list-structure/SKILL.md

**Source commit:** e8d14d049010e2ce25afcd5e8609dfcbbe63e47e

**Listing approved at:** 2026-11-23

**Created at:** 2026-11-22T16:56:04.000000Z

**Updated at:** 2026-11-23T04:55:39.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### 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 instructions

---
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

