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.
0.8% done
How close this website is to fixing this issue.
HTML | Found on page | Issues |
---|---|---|
<input type="submit" class="search-btn" value>
|
103 | |
<input class="input input-block-level" name="q" type="text" placeholder="Search website...">
|
94 | |
<button class="vjs-control vjs-playlist-button vjs-button vjs-icon-play-next" aria-disabled="false">
|
64 | |
<span class="vjs-recommendations-overlay-hide vjs-icon-close" tabindex="0" role="button" aria-disabled="false">...</span>
|
32 | |
<div class="vjs-recommendations-overlay-item vjs-recommendations-overlay-item-primary" tabindex="0" role="button" aria-disabled="false">...</div>
|
32 | |
<button class="vjs-control vjs-playlist-button vjs-button vjs-icon-play-previous" aria-disabled="false">
|
32 | |
<input class="input input-block-level" name="q" type="text" placeholder>
|
22 | |
<button type="button" class="c-header__menu-toggle">...</button>
|
21 | |
<input type="text" placeholder="Search website..." name="q">
|
21 | |
<button type="button" class="c-worldwide__close" data-flyout-selector="#worldwide">...</button>
|
21 |