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 |
---|---|---|
<button type="button" class="lower-nav-mobile-button h-full w-12 -mr-3 border-l-2 border-r-2 p-3 text-white bg-primary border-primary hover:bg-primary-dark hover:border-primary-dark focus:bg-primary-dark focus:border-primary-dark font-step-4 border-t-2 border-b-2 flex items-center justify-center text-caption focus:outline-none" data-v-6f9a373d>...</button>
|
124 | |
<button type="submit" class="transition-colors border-l-2 border-r-2 p-1 text-primary border-transparent bg-transparent hover:bg-primary-lighter focus:bg-primary-lighter font-step-4 border-t-2 border-b-2 flex items-center justify-center text-caption focus:outline-none">...</button>
|
124 | |
<button type="button" class="transition-colors border-l-2 border-r-2 p-1 text-primary border-transparent bg-transparent hover:bg-primary-lighter focus:bg-primary-lighter font-step-4 border-t-2 border-b-2 flex items-center justify-center text-caption focus:outline-none">...</button>
|
124 | |
<button type="submit" class="transition-colors border-l-2 border-r-2 p-1 text-secondary-invert bg-secondary border-secondary hover:bg-secondary-dark hover:border-secondary-dark focus:bg-secondary-dark focus:border-secondary-dark font-step-4 border-t-2 border-b-2 flex items-center justify-center text-caption focus:outline-none">...</button>
|
123 | |
<button type="button" class="transition-colors border-l-2 border-r-2 p-1 text-secondary-invert bg-secondary border-secondary hover:bg-secondary-dark hover:border-secondary-dark focus:bg-secondary-dark focus:border-secondary-dark font-step-4 border-t-2 border-b-2 flex items-center justify-center text-caption focus:outline-none">...</button>
|
123 | |
<button type="button" class="relative border-l-2 border-r-2 p-1 border-transparent text-mono-500 bg-transparent hover:bg-mono-300 focus:bg-mono-300 uppercase border-t-2 border-b-2 flex items-center justify-center text-caption focus:outline-none transition-colors">...</button>
|
37 | |
<button type="button" class="border-l-2 border-r-2 p-3 text-white bg-primary border-primary hover:bg-primary-dark hover:border-primary-dark focus:bg-primary-dark focus:border-primary-dark uppercase border-t-2 border-b-2 flex items-center justify-center text-caption focus:outline-none transition-colors flex-shrink-0">...</button>
|
4 | |
<button type="button" class="border-l-2 border-r-2 p-1 border-transparent text-mono-500 bg-transparent hover:bg-mono-300 focus:bg-mono-300 uppercase border-t-2 border-b-2 flex items-center justify-center text-caption focus:outline-none transition-colors">...</button>
|
2 | |
<button type="button" class="border-l-2 border-r-2 p-3 text-secondary-invert bg-secondary border-secondary hover:bg-secondary-dark hover:border-secondary-dark focus:bg-secondary-dark focus:border-secondary-dark uppercase border-t-2 border-b-2 flex items-center justify-center text-caption focus:outline-none transition-colors flex-shrink-0">...</button>
|
2 | |
<input id="5a59627a-248d-4901-8b4f-1d3bbceec162" name="email" maxlength="50" type="email" value class="pr-4 h-16 border-mono-700 appearance-none rounded w-full border-2 bg-white text-mono-700 placeholder-mono-300 text-body-1 pl-4">
|
1 |