🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Forms and Semantic HTML: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. Which form method should a signup form with a password use?
  2. Q2. What does <label for="email" do?
  3. Q3. Why must the server validate data even when the form uses required and pattern?
  4. Q4. Which tag should hold the main navigation links?
  5. Q5. Which input type shows a numeric keypad and checks email format respectively?
  6. Q6. In a form, which attribute decides the key the server receives for an input's value?
  7. Q7. A search form for courses should use which method?
  8. Q8. Three radio buttons for "Year 1", "Year 2" and "Year 3" let the user choose only one. What must they share?
  9. Q9. What does pattern="[6-9][0-9]{9}" on a mobile number input check?
  10. Q10. Why is semantic HTML (header, nav, main, article…) better than divs everywhere?