Rule
Multiple labels
Form fields should not have multiple labels.
- Rule
multiple-labels- Type
- Best practice, not a WCAG requirement. It runs when Best practices is switched on.
- Severity
- Minor
What it checks
The rule looks at each <input>, <select> and <textarea> and counts the visible <label> elements tied to it. More than one fails. Hidden labels are not counted.
Several labels on one field are valid HTML, but screen readers differ in which they announce, so a person may hear only part of what the page means to say.
Example
Fails
<label for="email">Email</label>
<input id="email" type="email">
<label for="email">We only use this to send your receipt.</label>
Passes
<label for="email">Email</label>
<input id="email" type="email" aria-describedby="email-hint">
<p id="email-hint">We only use this to send your receipt.</p>
The engine is tested against both examples.
How to fix it
Keep one label for the field, and link any extra guidance to it with aria-describedby.
Check your own pages
This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.