form-field-multiple-labelsForm field has more than one label
A field with more than one <label> attached is read inconsistently: some screen readers read only the first label, others read them all. Use one label per field, and connect extra hints or error messages with aria-describedby instead.
Who it hurts
Screen reader users and voice control users, who may hear or need a different name from the one you expect.
Validation plugins often add their error message as a second <label>, and some themes add a hidden label on top of a visible one.
How to fix it
Pick your stack. Review every change before you ship it.
Before
<label for="pw">Password</label>
<input id="pw" type="password">
<label for="pw">At least 8 characters</label>After
<label for="pw">Password</label>
<input id="pw" type="password" aria-describedby="pw-hint">
<p id="pw-hint">At least 8 characters</p>Check it by hand too
Tab to each field with a screen reader on, with and without errors showing. You should hear the label once, then any hint or error.
Automated checks find a large share of accessibility problems, but not all of them. Passing this check does not on its own make a page compliant.
WCAG reference
- 3.3.2 Labels or Instructions (Level A). Understanding 3.3.2