Label Association Quiz
Multiple Choice Easy
Question
How do you associate a <label> with an <input> for accessibility?
Hint
One attribute on the label points to the input's unique identifier.
Explanation
The for attribute on the <label> must match the id of the <input>. This association lets screen readers announce the label when the input is focused, and lets clicking the label focus the input.
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.