Lists: Ordered, Unordered, and Description
You'll learn how proper list markup announces item counts and structure to assistive technologies.
When you use semantic list elements in HTML, screen readers don't just read the text—they announce important metadata like "list with 5 items" before reading each item. This gives users context about what they're navigating through and helps them decide whether to explore the full list or skip ahead.
The Three List Types
Ordered lists (<ol>) communicate sequence and ranking. Screen readers announce the number alongside each item: "1 of 5, first step."
Unordered lists (<ul>) indicate collections where order doesn't matter, like navigation menus or features. Assistive tech announces these as bullet lists with item counts.
Description lists (<dl>) pair terms (<dt>) with definitions (<dd>), perfect for glossaries or metadata. Screen readers announce the relationship between terms and their descriptions.
Why This Matters
Think of lists like a table of contents in an audiobook. Without proper structure, a screen reader user hears a wall of text with no way to know how many items exist or jump between them. With semantic lists, they get:
- Total count upfront ("list with 8 items")
- Current position as they navigate ("4 of 8")
- Keyboard shortcuts to jump between list items
- The ability to skip the entire list if desired
Using <div> or <span> elements with bullets styled in CSS looks identical visually, but strips away all these navigational aids for assistive technology users.
Key Takeaway: Always use <ol>, <ul>, and <dl> for actual lists—semantic markup transforms visual groupings into navigable, understandable structures for screen reader users by announcing counts, positions, and relationships.