User Impact: Critical
Disabilities Affected:
WCAG Version:
2
WCAG Levels:
WCAG Guidelines:
Solution Techniques:
Automated Test Accuracy:
High
Check1st Severity:
3
DRRSAG Designations:
Ensure that the label’s for
attribute is associated with the id
attribute of an element that is a form field. Use an alternative labeling (e.g. `aria-label) if a description is required for a non-form field element.
The engine scans for elements referenced by a label’s for
attribute, and checks whether they are an input
, select
or textarea
elements.
Incorrectly associate a label with a non-form field element is misleading to assistive technology users.
<label for="name">Name</label>
<input type="text" name="name" id="name"/>