HTML Input Types — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the HTML Input Types 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
Add an email field
easy10 minAdd an input of type email.
- 2
Add a password field
easy10 minAdd an input of type password.
- 3
Add a number field
easy10 minAdd an input of type number.
- 4
Add a checkbox
easy10 minAdd an input of type checkbox.
- 5
Add a date picker
medium10 minAdd an input of type date.
Find the bug(5)
- 1
Fix the text field used for email
easy8 minUse the email type so browsers validate the format.
- 2
Fix the visible password
easy8 minA password field must not use type text.
- 3
Fix the invented type
easy8 minThere is no "digits" input type.
- 4
Fix the radio used for a single toggle
easy8 minA single on/off choice should be a checkbox.
- 5
Fix the missing type
easy8 minWithout a type the field defaults to text.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace