What does this mean?
People using screen readers are not able to see the layout of a form. To make forms accessible, they must define explicit text labels for each form control.
More helpUsually the best solution is to use a <label>
element. The label may be linked to
by the form control:
<label for="name">Full name</label>
<input type="name" id="name">
or the <label>
can be wrapped around the form control:
<label>
Full name <input type="name">
</label>
Buttons are different, as their labels are specified by the code for the button, e.g.
<input type="submit" value="Send message">
<button>Send message</button>
Alternatively ARIA attributes, such as aria-label
may be used, but this information
will not be conveyed to visual users. For more information, see W3C's guide to labeling controls.
Hidden input fields (<input type="hidden">
) do not require labels.
Note that the placeholder
attribute
should not be used as an alternative to a label.
28% done
How close this website is to fixing this issue.
HTML | Found on page | Issues |
---|---|---|
<input type="text" name="keyword" class="wide focusAttached" placeholder="Enter keyword(s)">
|
46 | |
<select id="year" name="year" class=" focusAttached">...</select>
|
45 | |
<select id="sectiontag" name="sectiontag" class=" focusAttached">...</select>
|
37 | |
<input type="text" class="wide search-input focusAttached" name="q" placeholder="Enter keyword(s)" value="Annual report">
|
14 | |
<input type="text" class="wide search-input focusAttached" name="q" placeholder="Enter keyword(s)" value="Johnnie Walker">
|
10 | |
<select id="markettag" name="markettag" class=" focusAttached">...</select>
|
8 | |
<input id="age_select_year_of_birth" class="age_select_date_of_birth" type="tel" name="age_date_month_textfield" size="2" maxlength="2" placeholder="YY" tabindex="3">
|
7 | |
<input id="age_select_day_of_birth" class="age_select_date_of_birth" type="tel" name="age_date_day_textfield" size="2" maxlength="2" placeholder="DD" tabindex="2">
|
7 | |
<select id="age_select_month" style="margin-left:4px;">...</select>
|
7 | |
<input id="age_select_month_of_birth" class="age_select_date_of_birth" type="tel" name="age_date_month_textfield" size="2" maxlength="2" placeholder="MM" tabindex="1">
|
7 |