Recall & Review
beginner
What is the main HTML element used to create a form?
The <form> element is used to create a form in HTML. It groups input fields and controls for user data submission.
Click to reveal answer
beginner
What attribute of the <form> element specifies where to send the form data?
The <form> element's
action attribute specifies the URL where the form data will be sent when submitted.Click to reveal answer
beginner
What is the purpose of the <label> element in a form?
The <label> element provides a text description for form controls. It improves accessibility by linking text to inputs.
Click to reveal answer
intermediate
How do you group related form controls together visually and semantically?
Use the <fieldset> element to group related controls, and <legend> to provide a caption for the group.
Click to reveal answer
beginner
What attribute on input elements helps browsers know what kind of data to expect?
The
type attribute on input elements defines the kind of data expected, like text, email, password, or checkbox.Click to reveal answer
Which HTML element is used to submit a form?
✗ Incorrect
The
What does the <label> element do in a form?
✗ Incorrect
The
Which attribute on <form> defines where data is sent?
✗ Incorrect
The action attribute specifies the URL to send form data when submitted.
How do you group related inputs in a form?
✗ Incorrect
The
Which input type is best for entering an email address?
✗ Incorrect
The input type="email" helps browsers validate email addresses.
Explain the basic structure of an HTML form and the role of its main elements.
Think about how a form collects and sends data.
You got /5 concepts.
Describe how to make a form accessible and easy to use for everyone.
Accessibility means everyone can use the form easily.
You got /4 concepts.