Labels clarify the purpose of form elements. Although the purpose of each element may be obvious for sighted users, this is often not the case for users who rely on screen readers.
See Create Amazing Forms for more information.
Below the audit, Lighthouse displays something like
1 element fails
this test. The number varies depending on how many elements are failing.
Click this label to expand the list. You can find each element in your
DOM by running the
from the Chrome DevTools Console.
Associate a label to every form element. There are four ways to do so.
<label>First Name <input type="text"/></label>
<label for="first">First Name <input type="text" id="first"/></label>
<button class="hamburger-menu" aria-label="menu">...</button>
<span id="foo">Select seat:</span> <custom-dropdown aria-labelledby="foo">...</custom-dropdown>
This audit is powered by the aXe Accessibility Engine. See Form elements must have labels for more information.