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