Skip to content
easeweb
Search topics

Lists built from divs, icons and typed numbers

A plan card draws its features as divs with check icons and its steps as paragraphs with typed numbers, so a screen reader hears loose lines, not lists.

WCAG 2.2
SC 1.3.1A
Required by
Section 508 · EN 301 549 (EU)
Broken <div class="feature"><svg class="icon-check" …>Unlimited projects</div>
The accessibility problem illustrated: No vision:How many features are there?
01

The problem

Screen reader users hear the plan's features and steps as loose lines, with no count, no end, and no way to jump to them or past them

02

Try it

Listen to the plan card, then jump to its list the way a screen reader user would

  • Broken 1: the panel shows what NVDA or JAWS reads from the top of the card. “Press L” is the key that jumps to the next list. Does anything say a list starts, how long it is, or where it ends?

  • Broken 2: the steps, with numbers typed into paragraphs. Try “Press L” again: does anything mark them as a list?

  • Apply a fix. Read the panel again, and try “Press L”: what tells you a list starts, how long it is, and where it ends?

Broken Can you fix this?

Team plan
Unlimited projects
50 GB of storage
Shared calendars
Priority support

Reading the card from the top, a screen reader says:

Team plan, heading level 3Unlimited projects50 GB of storageShared calendarsPriority support

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Mark each list up as a list, and number ordered steps once

Before

Features drawn with icons

<h3>Team plan</h3><div class="features">  <div class="feature"><svg class="icon-check" aria-hidden="true">…</svg>Unlimited projects</div>  <div class="feature"><svg class="icon-check" aria-hidden="true">…</svg>50 GB of storage</div>  <div class="feature"><svg class="icon-check" aria-hidden="true">…</svg>Shared calendars</div>  <div class="feature"><svg class="icon-check" aria-hidden="true">…</svg>Priority support</div></div>
What is wrong2 points
  • A screen reader can't tell the features are a list. The check marks are its only sign on screen, and they are hidden from screen readers.
  • The features are read as four lines that happen to follow each other. The four div elements carry nothing that relates them.
After

Ul and ol elements

<h3>Team plan</h3><ul class="features">  <li><svg class="icon-check" aria-hidden="true">…</svg>Unlimited projects</li>  <li><svg class="icon-check" aria-hidden="true">…</svg>50 GB of storage</li>  <li><svg class="icon-check" aria-hidden="true">…</svg>Shared calendars</li>  <li><svg class="icon-check" aria-hidden="true">…</svg>Priority support</li></ul> <h3>Getting started</h3><ol class="steps">  <li>Create your team.</li>  <li>Invite up to 10 people.</li>  <li>Connect your calendar.</li></ol>
How it is fixed3 steps
  1. Make the features a ul and each feature an li, keeping the check marks.
  2. Make the steps an ol, and delete the typed numbers. The ol numbers the steps itself, so a new step is numbered without anyone editing the rest.
  3. Turn off the features' default bullets and indent in CSS, so the card looks exactly as it did.

A screen reader now announces "list, 4 items" and "list, 3 items" before reading them, says when each ends, and stops at both when someone presses L. This fixes both Befores and passes 1.3.1. The bullets and indent, a common reason below for keeping the divs, are handled with CSS here too. One condition: as of October 2026, MDN notes that Safari doesn't expose a ul or ol with list-style: none as a list unless it is inside a nav, which WebKit treats as intended (WebKit bug 170179). VoiceOver in Safari may then read the features without the list, and MDN's remedy is role="list" on the ul.

Why this fix: Use native HTML first

04

Verify the fix

4 checks, no mouse.

Test with: Screen reader

0 of 4 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat whenever a shared list component, the CMS editor or the styles that remove markers change.

Limits

This is a starting pattern, not a guarantee for every application. Class names and the … inside the icons are placeholders. Screen readers word lists differently, "list, 4 items", "list with 4 items" or "4 items", so listen for the count and the end rather than the exact phrasing. This guide covers whether content shown as a list is marked up as one. It doesn't cover tables, headings, or lists that can be reordered by dragging. A list role that is misspelled, or the deprecated role="directory", is covered in invalid ARIA that misleads screen readers. Test the complete journey with your target assistive technology.

This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.

EaseWeb service

Fixed it? Keep it from coming back.

I turn guides like this one into rules your coding agents follow and checks your CI runs. Then I retest by hand with a keyboard and screen readers, periodically.

See the service