{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-list-structure-4383522fba6d","title":"Ensure Proper List Structure for Accessibility","summary":"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.","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","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-list-structure-4383522fba6d\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_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.","instructions":"---\nname: list-structure\ndescription: \"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.\"\nmetadata:\n  category: accessibility\n  priority: medium\n  difficulty: intermediate\n  estimatedTime: \"10\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/accessibility\/list-structure\n---\n\n# Use correct list structure\n\nScreen 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.\n\n## Quick Reference\n\n- Unordered (`<ul>`) and ordered (`<ol>`) lists must only contain `<li>` elements\n- Do not put other elements like `<div>` or `<p>` directly inside a list\n- Ensure nested lists are also properly contained within an `<li>` element\n\n## Check\n\nCheck the structure of all lists to ensure only `<li>` elements are direct children of `<ul>` or `<ol>`.\n\n## Fix\n\nRemove or move any non-`li` elements from within `<ul>` and `<ol>` tags.\n\n## Explain\n\nExplain why assistive technology needs a consistent list structure to provide accurate navigation information.\n\n## Code Review\n\nReview 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.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/accessibility\/list-structure\n","use_cases":["Reviewing HTML markup for accessibility compliance","Auditing interactive components for screen reader compatibility","Checking design-system patterns for semantic structure"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/list-structure\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T16:56:04.000000Z","updated_at":"2026-11-23T04:55:39.000000Z","seo_title":"Ensure Proper List Structure for Accessibility","seo_description":"Ensure proper list structure for accessibility by validating HTML lists use correct semantic elements like `<ul>` and `<ol>` with only `<li>` children.","seo_keywords":["accessibility list structure","HTML list validation","screen reader compatibility","semantic HTML checklist","assistive technology list structure"]}}