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="number" name="forIESubmitEnabling" value class="hide">
|
282 | |
<input title="Search" class="search-btn icon icon-search" type="submit" id="search_submit_button" value>
|
124 | |
<input id="mainSearch-input" class="search-input" name="search" type="text" placeholder="What are you looking for?" autocomplete="off" value tabindex="1">
|
124 | |
<button class="ytp-large-play-button ytp-button">...</button>
|
33 | |
<div class="slick-track" style="opacity: 1; width: 891px; transform: translate3d(0px, 0px, 0px);" role="listbox">...</div>
|
27 | |
<div class="slick-track" style="opacity: 1; width: 0px; transform: translate3d(0px, 0px, 0px);" role="listbox">...</div>
|
25 | |
<select id="sortby_bottom" name="sort_by">...</select>
|
18 | |
<input maxlength="4" name="/atg/commerce/order/purchase/CartModifierFormHandler.quantity" step="1" id="product_qty_2" type="number" value="1" class="fm-input--items">
|
18 | |
<select id="sortby_mobile" name="sort_by" autocomplete="off">...</select>
|
18 | |
<input maxlength="4" name="/atg/commerce/order/purchase/CartModifierFormHandler.quantity" step="1" id="product_qty_3" type="number" value="1" class="fm-input--items">
|
18 |