Form field without a label
Why it matters
Screen readers announce an unnamed input, select or textarea (Lighthouse: form elements do not have associated labels).
Fix
Wrap it in <label>, pair an id with <label htmlFor>, or add aria-label.
Credit
From Deque
The axe rule label requires every form element to have a label.
From W3C Web Accessibility Initiative
WCAG 3.3.2 requires labels or instructions for user input.
References
- Form elements must have labelsDeque University
- Understanding Success Criterion 3.3.2: Labels or InstructionsW3C
- Labeling ControlsW3C
- <label> HTML label elementMDN Web Docs