Challenge - 5 Problems
Form Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:00remaining
What is the main purpose of an HTML form?
Choose the best description of what an HTML form does on a webpage.
Attempts:
2 left
💡 Hint
Think about what happens when you fill out a survey or login page.
✗ Incorrect
HTML forms are used to gather information from users and send it to a server for processing, such as login details or survey answers.
📝 Syntax
intermediate1:00remaining
Which HTML element is used to create a form?
Select the correct HTML tag that starts a form.
Attempts:
2 left
💡 Hint
The tag that wraps all form controls is the form tag.
✗ Incorrect
The <form> tag defines a form in HTML. Other tags like <input> and <button> are used inside the form.
❓ rendering
advanced1:30remaining
What will the user see when this form is rendered?
Look at the HTML code below and choose what the user will see in the browser.
HTML
<form> <label for="name">Name:</label> <input type="text" id="name" name="name"> <button type="submit">Send</button> </form>
Attempts:
2 left
💡 Hint
Labels describe inputs; buttons submit the form.
✗ Incorrect
The form shows a label 'Name:' next to a text input box and a submit button labeled 'Send'.
❓ accessibility
advanced1:30remaining
Why is the
Choose the best reason why using
Attempts:
2 left
💡 Hint
Think about users who rely on screen readers.
✗ Incorrect
The <label> element connects descriptive text to form inputs, helping screen readers announce what the input is for.
🧠 Conceptual
expert2:00remaining
What happens if a form has no action attribute?
Select what the browser does when a form without an action attribute is submitted.
Attempts:
2 left
💡 Hint
Think about what happens when no destination is specified for the form data.
✗ Incorrect
If the action attribute is missing, the form submits data to the current page URL by default.