HTML Forms Quiz (Sololearn Course)
1. 1. What HTML tag is used to create a form?
○ <input>
○ <label>
✔ <form>
○ <div>
2. 2. Which of the following is a correct use of the <input> tag?
✔ <input type='text'>
○ <input='text'>
○ <text input>
○ <input type='label'>
3. 3. What does the <label> tag do in a form?
○ Submits form data
✔ Adds a caption to a field
○ Defines the style of input
○ Connects input fields to databases
4. 4. How do you correctly link a label to an input?
○ Using class and name attributes
✔ Using id on input and for on label
○ Using type and name attributes
○ Using label inside input
5. 5. True or False? Correctly connecting labels and inputs improves accessibility.
✔ True
○ False
6. 6. What attribute identifies a unique input field in HTML?
○ name
✔ id
○ for
○ type
7. 7. True or False? You can use the same id for multiple elements in HTML.
○ True
✔ False
8. 8. What is missing from this code snippet?
<form>
<input type='checkbox'>
<label for='c1'>Low</label>
<input type='checkbox'>
<label for='c2'>High</label>
</form>
○ closing </form>
○ name attributes
✔ id attributes
○ submit button
9. 9. What happens when form fields and labels are correctly connected?
○ Form doesn't submit
○ Nothing happens
✔ Clicking the label selects the field
○ It changes input type
10. 10. What does the submit input type do?
○ Styles the form
○ Saves the form to your PC
✔ Sends form data to the server
○ Shows an alert
11. 11. What attribute is used to reference form data after submission?
○ id
○ value
○ type
✔ name
12. 12. Which input's value will be saved to the 'city' column in the database?
○ <input type='text' name='email'>
○ <input type='text'>
✔ <input name='city'>
○ <input type='submit'>
13. 13. When using radio buttons, what attribute is used to send the selected value?
○ id
○ for
✔ value
○ placeholder
14. 14. If the user doesn’t type anything, what value will be sent?
<input type='text' name='email' value='example@domain.com'>
○ Nothing will be sent
○ The field will throw an error
✔ example@domain.com
○ Input type will be sent
15. 15. Bonus: What is a 'hit area' in HTML forms?
○ The area of the screen where you input data
✔ The clickable area linked to a form element, like a label connected to a checkbox
○ The box around the input field
○ An error detection area
Retrospective Section
16. 1. How satisfied are you with the weekly HTML sessions? (Very satisfied, Satisfied,
Neutral, Unsatisfied, Very unsatisfied)
17. 2. Have you been coping well with managing schoolwork and HTML lessons? (Yes / No)
18. 3. What can we do to help you improve your understanding or performance? (Open-
ended)