Reviewed November 30, 2026
WCAG 1.3.1 on Storefront Forms: A Label You Can See Is Not a Label a Machine Can Read
Info and Relationships, WCAG 2.1 criterion 1.3.1 at Level A, requires that structure conveyed visually is also available in code: form fields tied to their labels with real associations, radio groups wrapped in fieldset and legend, headings in a real hierarchy. A checkout field whose only label is its placeholder text fails, because the placeholder is not a programmatic label, disappears on input, and is not reliably announced. The fix is markup, not design.
Sighted shoppers read a form with their eyes: the small word above the box is obviously the label. Assistive technology reads the code, and code is where storefront forms quietly fall apart. Themes ship fields labelled by placeholder, radio choices grouped by proximity alone, and error text floating near a field without ever being linked to it.
Auditors love 1.3.1 because it is everywhere. It is also the criterion whose fixes most improve real completion rates, because programmatic labels are what make voice control, autofill, and screen readers all work at once.
The label association, checked properly
Every input needs a label element whose for attribute matches the input id, or an equivalent aria-labelledby pointing at real text. Click the visible label with your mouse: if the field does not gain focus or toggle, the association is missing, and that ten second test catches most failures without opening dev tools.
Placeholder text fails three jobs at once. It vanishes when typing starts, it is often too low contrast to read, and screen readers treat it inconsistently. Keep placeholders as format hints, house number style examples and the like, and give every field a persistent, visible, associated label. Forms get slightly taller and measurably more completable.
Groups need names, not just neighbours
Shipping method choices, gift wrap options, size selectors built from radios: each group needs a fieldset with a legend naming the group, so a screen reader announces Shipping method, Standard, radio, one of three, instead of a bare list of prices with buttons. Visual grouping by spacing conveys nothing to code.
The same principle runs through the whole page. Heading levels that skip for styling, lists marked up as separate paragraphs, data tables built from divs: each is structure your eyes receive and the code withholds. 1.3.1 is the criterion that says the code has to tell the same story the pixels tell.
Errors and instructions are relationships too
An error message sitting under a field in red text is visually related and programmatically a stranger. Link it with aria-describedby, mark the field invalid in code, and the screen reader user hears what the sighted user sees. Checkout error handling built this way also surfaces in the 3.3.1 error identification work, because the two criteria share the same plumbing.
Instructions count as well. Password rules, character limits, and format requirements placed near a field must be associated with it, or the user discovers them only by failing. Put the rule in the description, before the first failed attempt teaches it the hard way.
Related reading
Two earlier posts on this site cover ground “WCAG 1.3.1 on Storefront Forms: A Label You Can See Is Not a Label a Machine Can Read” builds on: WCAG 2.1.1 Keyboard and 2.1.2 No Keyboard Trap: Testing Your Cart Drawer the Way a Keyboard User Meets It, WCAG 1.4.12 Text Spacing Breaks Product Pages That Clip Their Own Copy, and WCAG 2.5.7 Says Your Price Slider Needs a Single Pointer Alternative.
Frequently asked questions
Is placeholder text enough to label a form field?
No. A placeholder is not a programmatic label under 1.3.1, it disappears once typing starts, and it is inconsistently announced by assistive technology. Every field needs a persistent visible label associated in code, with the placeholder kept as a format hint at most.
How do I test label association without a screen reader?
Click the label text. If the matching field gains focus, or the checkbox or radio toggles, the association exists. If nothing happens, the label is visual only. Follow up in the code by matching the label for attribute to the input id.
Why do radio groups need fieldset and legend?
So the group name is announced with each option. Without it, a screen reader user hears a list of prices or sizes with no idea what question they answer. The fieldset groups them in code and the legend supplies the name.
Does 1.3.1 apply to error messages?
Yes. Errors and instructions that are visually tied to a field must be programmatically tied too, usually with aria-describedby, so assistive technology users receive the same relationships sighted users get from layout.