QuizNot attempted
Associating labels
1–4 to choose, Enter to submit
Show answer & explanation
Correct answers:
<label for="email">Email</label><input id="email"><label>Email <input></label><input aria-label="Email">
for/idand wrapping the input in<label>both create a real label association (announced as the name, and clicking the text focuses the input)aria-labelalso sets the accessible name, just with no visible label.- Not span + placeholder: a span isn't associated with anything, and a placeholder isn't a reliable label: it disappears while typing and often has poor contrast.