HTML Form Attributes — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the HTML Form Attributes lesson. Every one is checked automatically in the browser — write the code, run it, and the tests tell you what still fails.
Exercises(5)
- 1
Target a new tab
easy10 minMake the form submit into a new tab.
- 2
Turn off autocomplete
easy10 minDisable autocomplete on the form.
- 3
Name the form
easy10 minGive the form the name "signup".
- 4
Set the encoding for uploads
easy10 minUse multipart/form-data so files can upload.
- 5
Skip built-in validation
medium10 minAdd novalidate to the form.
Find the bug(5)
- 1
Fix the wrong target value
easy8 minA new tab uses _blank, not new.
- 2
Fix the missing encoding
easy8 minFile uploads need multipart/form-data.
- 3
Fix autocomplete spelled wrong
easy8 minThe attribute is autocomplete.
- 4
Fix the id used instead of name
easy8 minThe form should be named, not just given an id.
- 5
Fix the validation flag
easy8 minThe attribute is novalidate, not no-validate.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace