list-structure
Installation
SKILL.md
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.