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% done
How close this website is to fixing this issue.
HTML | Found on page | Issues |
---|---|---|
<input name="q" type="text" autofocus class="primary-navigation__search-input" placeholder="Search">
|
244 | |
<button class="js-toggle-class unbutton cookie-message__close" data-class="cookie-message--visible" data-target="#cookie-message">...</button>
|
83 | |
<button class="js-toggle-class unbutton js-geo-routing-dismiss js-ga-event-trigger location-switch__message-close" data-ga-category="geo-routing-message" data-ga-action="dismiss">...</button>
|
83 | |
<div class="home-hero carousel carousel-fade" id="carousel-home-hero" role="listbox" aria-live="polite" style="touch-action: pan-y;">...</div>
|
19 | |
<input type="text" name="1ee1eeab495d402b84d716c2cde55f5c">
|
11 | |
<input type="text" name="da419c80281646ac99ce84d804b56e5f">
|
2 | |
<input type="text" name="b5358f4cec434261b961232ed3c9fc79">
|
2 | |
<input type="text" name="a6c92dc6509e460eb8c48eb21f4fafdb">
|
2 | |
<input type="text" name="84e6dff6ceef47f5abd57c70c702bdc0">
|
2 | |
<input type="text" name="11daf1effda343a99bd12862e160e2ef">
|
1 |