Text
List (ordered)
Published on
Description
Ordered lists present items where sequence matters. Screen readers announce item numbers, giving users position context within the list.
Example
Accessibility
- The
<ol>element has an implicit ARIA role oflist. Screen readers announce item positions. - Safari removes list semantics when
list-style: noneis applied. Userole="list"to restore semantics if needed. - CSS
displayproperties (flex, grid, contents) can strip list semantics in some browsers. Test with screen readers if using non-default display values.
References
- CSS Display Properties versus HTML Semantics (opens in new tab) — Adrian Roselli
Related
- Unordered list — when sequence does not matter
- Description list — for key-value pairs
Variables
None for lists