---
title: "Accessible Form Labels: Tie Each Label to Its Field · Rubric"
description: Tie each visible label to its input with a native label or aria-labelledby, so screen readers announce it. Link error messages to the field too.
url: https://rubric.design/ux/accessibility.form-label-association
format: agent view of this page
updated: 2026-11-16
---

[UX guides](https://rubric.design/ux/) / [Accessibility](https://rubric.design/ux/topic/accessibility) / Labels are programmatically associated with their fields

# Labels are programmatically associated with their fields

Usually critical · How serious this usually is when it goes wrong. Not a score.

## The guideline

Associate every input's visible label with its control using a native `<label for>`/`id` pair, or `aria-labelledby` when a native label element is not possible. When a field enters an error state, associate the error text with the field via `aria-describedby` and set `aria-invalid="true"`, so the relationship is available to assistive technology and not only implied by screen position. Group related controls — a set of radio buttons, an address block — with `fieldset`/`legend` so the group itself has a name.

## Common failures

- Form fields rely on placeholder text instead of persistent `<label>` elements, lack `for`/`id` associations, or use empty/visual-only labels.

## Where it applies

### Where

- Applies to any site

### Disciplines

- Accessibility

### Devices

- Desktop web
- Mobile app
- Mobile web

## Why it matters, how to fix it, and the research behind it

Rubric's full guide adds the reasoning, the fix and the sources for this check, and checks your pages against it and the rest of the checklist, the way a visitor would meet them. Findings come back worst first.

[Use demo account](https://rubric.design/demo) · [Use it from your coding agent (MCP)](https://rubric.design/#agents)

## Related guides

- [Video and audio content ships with captions and a transcript](https://rubric.design/ux/accessibility.video-captions-transcripts) · Usually critical · Provide synchronized closed captions for every prerecorded video that has a soundtrack, including speaker identification and non-speech sounds that carry…
- [Pages have a descriptive title and a logical heading hierarchy](https://rubric.design/ux/accessibility.heading-structure) · Usually high · Give every page a unique \<title> that identifies its specific content, with the page-specific part first (WCAG 2.2 SC 2.4.2).
- [Pointer targets meet a minimum size or spacing](https://rubric.design/ux/accessibility.pointer-target-size) · Usually high · Make every pointer target at least 24 by 24 CSS pixels — the WCAG 2.2 Level AA floor — and design to 44 by 44 wherever the control carries weight, which is…
- [Password composition rules are shown before submission, not after](https://rubric.design/ux/auth.password-requirements-visible) · Usually high · If the password field enforces composition rules, state them next to the field before the first submit attempt — as static hint text or a live checklist that…
- [Autocomplete suggests as the user types, fast, clean and keyboard-operable](https://rubric.design/ux/search.autocomplete-suggestions) · Usually high · Show suggestions after two or three typed characters, with no visible lag or flicker as the user keeps typing.
