18. Why should labels be associated with inputs?
Labels provide an accessible name for form controls and improve usability. Explicitly associating a label with an input also allows users to activate the input by selecting its label.
Key Takeaways
- Every user-facing control should have an appropriate accessible label.
- Placeholder text should not replace labels.
Knowledge Check
How can a label be explicitly associated with an input?