🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Styles the input
  2. B.Connects the label to the input with id="email"
  3. C.Validates the email
  4. 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 →