🎙 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 8 of 10

Three radio buttons for "Year 1", "Year 2" and "Year 3" let the user choose only one. What must they share?

Three radio buttons for "Year 1", "Year 2" and "Year 3" let the user choose only one. What must they share?

  1. A.The same id
  2. B.The same name
  3. C.The same label text
  4. D.The same value
Answer & explanation

Correct answer: The same name

Radio buttons with the same name form one group, so only one can be selected.

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 →