← Quiz: Forms and Semantic HTML: all 10 questions
Quiz: Forms and Semantic HTML · Question 2 of 10
What does <label for="email" do?
What does <label for="email"> do?
- A.Styles the input
- B.Connects the label to the input with id="email"
- C.Validates the email
- D.Sends the form
Answer & explanation
Correct answer: Connects the label to the input with id="email"
Clicking the label focuses the input, and screen readers announce it.
Can you get the rest right without peeking?
Take the timed Quiz: Forms and Semantic HTML quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →