Text
List (unordered)
Published on
Description
Unordered lists present items where sequence does not matter. Screen readers announce the number of items, giving users context about list length.
Example
Accessibility
- The
<ul>element has an implicit ARIA role oflist. Screen readers announce "list, X items" on entry. - 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
- Ordered list — when sequence matters
- Description list — for key-value pairs
Variables
None for lists