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.
10.4% done
How close this website is to fixing this issue.
HTML | Found on page | Issues |
---|---|---|
<select id="mast-f-country-switcher" class="mast-c-country-switch__dropdown tab-focus svelte-1l17rlz" data-tracking data-tracking-label="masthead_country_switcher" title="Switch to the version of Sky.com for your country (this will reload the page)">...</select>
|
111 | |
<div class="c-image-gallery__thumbnail-item" role="button" tabindex="0">...</div>
|
74 | |
<div class="c-image-gallery__thumbnail-item selected" role="button" tabindex="0">...</div>
|
21 | |
<button type="button" class="c-link-faux mast-c-user-actions__btn c-chat" data-test-id="chat-button" data-tracking-label="chat_icon">...</button>
|
19 | |
<button class="c-mobile-products-filter__close" type="button">...</button>
|
4 | |
<select id="sort" name="sort" class="c-form-select__dropdown" data-test-id="toolkit-select-input-dropdown">...</select>
|
4 | |
<input class="c-roundel__input" type="checkbox" name="phones-MobileDeviceCapacity" id="4-phones-MobileDeviceCapacity" tabindex="0" aria-labelledby="roundel-group-label" disabled value="4">
|
4 | |
<button type="button" aria-label class="c-link" data-test-id="new-to-sky-bottom">...</button>
|
1 | |
<input type="text" class="c-form-combo__input c-form-input mast-js-search__input" placeholder="Enter town or postcode" value>
|
1 | |
<button class="c-form-combo__btn c-btn--primary c-btn sl-search__icon mast-js-search__submit sl-disabled is-disabled" disabled>
|
1 |