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 |
---|---|---|
<a href="#" role="button" id="clear-search-input" aria-describedby="ariaClearField" class="search-clear">Clear search field</a>
|
125 | |
<select class="select" name="tab-select">...</select>
|
6 | |
<button class="m-button aem-button--icon-only" type="button" aria-roledescription="Decrease amount – click or press the enter key" aria-describedby="amtInputVal">...</button>
|
5 | |
<button class="m-button aem-button--icon-only" type="button" aria-roledescription="Decrease term – click or press the enter key" aria-describedby="termInputVal">...</button>
|
5 | |
<button class="m-button aem-button--icon-only" type="button" aria-roledescription="Increase term – click or press the enter key" aria-describedby="termInputVal">...</button>
|
5 | |
<button class="m-button aem-button--icon-only" type="button" aria-roledescription="Increase amount – click or press the enter key" aria-describedby="amtInputVal">...</button>
|
5 | |
<input class="a-input-text a-input-text--centered a-input-text--full-height" id="termInputVal" aria-live="assertive" type="number" aria-valuenow="0" autocomplete="off" pattern="[0-9]*" inputmode="decimal" value="60" step="6" min="24" max="60" aria-roledescription="Stepper, Term in months">
|
4 | |
<input type="text" title="Please enter an address, town or postcode..." class="formSearch" placeholder="Please enter an address, town or postcode..." name="location" id="location" autocomplete="off">
|
2 | |
<ul class="common-questions--list" role="listbox">...</ul>
|
1 | |
<input class="a-input-text a-input-text--centered a-input-text--full-height" id="termInputVal" aria-live="assertive" type="number" aria-valuenow="0" autocomplete="off" pattern="[0-9]*" inputmode="decimal" value="60" step="6" min="23" max="60" aria-roledescription="Stepper, Term in months">
|
1 |