Skip to content
easeweb
Search topics

Radio buttons and checkboxes without a group name

A checkout shows each question as bold text above its options, but nothing ties the two, so a screen reader reads "Yes, radio button" with no question.

WCAG 2.2
SC 1.3.1A
Required by
Section 508 · EN 301 549 (EU)
Broken <p>
The accessibility problem illustrated: No vision:Yes to what?
01

The problem

Screen reader users hear "Yes" or "Express" but not the question it answers

02

Try it

Press Tab to move into each question, and use the arrow keys between Yes and No

Both versions look the same. Below the form, check whether the screen reader hears the question or only the answer.

Broken Can you fix this?

BrokenQuestions as plain text above the options

Leave the parcel if no one is home?

Send me updates by

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Make the question the group's name

Before
BrokenQuestions as plain text above the options
<p class="question">Leave the parcel if no one is home?</p><div class="options">  <input id="leave-yes" type="radio" name="leave" value="yes">  <label for="leave-yes">Yes</label>  <input id="leave-no" type="radio" name="leave" value="no">  <label for="leave-no">No</label></div> <p class="question">Send me updates by</p><div class="options">  <input id="by-email" type="checkbox" name="updates" value="email">  <label for="by-email">Email</label>  <input id="by-text" type="checkbox" name="updates" value="text">  <label for="by-text">Text message</label></div>
What is wrong2 points

Every option is labelled, so each one has a name. The question is where it fails.

  • Screen reader users never hear the question. It is only a paragraph beside the options, not their group name.
  • So each option is read as "Yes, radio button", with nothing to say what it answers.
After

A fieldset and legend

<fieldset class="options">  <legend class="question">Leave the parcel if no one is home?</legend>  <input id="leave-yes" type="radio" name="leave" value="yes">  <label for="leave-yes">Yes</label>  <input id="leave-no" type="radio" name="leave" value="no">  <label for="leave-no">No</label></fieldset> <fieldset class="options">  <legend class="question">Send me updates by</legend>  <input id="by-email" type="checkbox" name="updates" value="email">  <label for="by-email">Email</label>  <input id="by-text" type="checkbox" name="updates" value="text">  <label for="by-text">Text message</label></fieldset>
How it is fixed3 steps
  1. Make each wrapper a fieldset, which is the group.
  2. Make each question its legend, which is the group's name. A screen reader says the question as focus enters the group, roughly "Leave the parcel if no one is home?, grouping, Yes, radio button".
  3. Keep the labels, so each option still has its own name.

This fixes the Before and passes 1.3.1. A restyled look works on the fieldset too: reset its default border and padding in CSS if the design doesn't want them; the meaning stays.

Why this fix: Use native HTML first

04

Verify the fix

4 checks, no mouse.

Test with: Keyboard, Screen reader, Zoom, Forced colors

0 of 4 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat after the shared group components change.

Limits

This is a starting pattern, not a guarantee for every application. Screen readers differ in how often they repeat a group name, and some read it only on the first option. Custom radio buttons built from div elements need the full radio pattern, with arrow keys and states, which this guide doesn't cover. Radio buttons hidden behind option cards, which Tab and the arrow keys can no longer reach, are covered in custom checkboxes that keyboards and screen readers skip. Groups inside third-party widgets and payment iframes need the same check. 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