HTML Worksheet: Forms and Inputs
Code tip (Pick the right box): <form> holds <input> tags; type= picks the kind: text, password, email, number, date … Radio buttons with the same name allow only ONE choice; checkboxes allow many. type="submit" makes the send button; <label> names a box.
NameDateTime takenScore ___ / 40
- 1.True or false: <input type="number"> takes only numbers. (a) True (b) False
- 2.📝 Which tag makes a big box for many lines of text? (a) <br> (b) <input> (c) <p> (d) <textarea>
-
3.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="checkbox" name="sport"> Cricket
<input type="checkbox" name="sport"> Football
<input type="checkbox" name="sport"> Hockey
</form> - 4.📝 Which input type is for one line of words? (a) submit (b) checkbox (c) password (d) text
- 5.What is <input type="text"> for? (a) takes only numbers (b) is for an email address (c) is for one line of words (d) hides what you type
- 6.📝 Which input type takes only numbers? (a) password (b) email (c) date (d) number
- 7.📝 What does a password box show instead of letters? (a) numbers (b) emojis (c) dots (d) capital letters
-
8.📝 How many <input> tags are in this form?
<form>
<input type="checkbox">
<input type="date">
<input type="email">
<input type="password">
<input type="number">
<input type="submit" value="Send">
</form> - 9.True or false: <input type="checkbox"> lets you tick many. (a) False (b) True
- 10.📝 Which input type hides what you type? (a) date (b) checkbox (c) password (d) submit
- 11.📝 Which input type lets you pick only one? (a) email (b) submit (c) radio (d) number
- 12.📝 Which input type is for an email address? (a) radio (b) date (c) email (d) text
- 13.What is <input type="number"> for? (a) takes only numbers (b) sends the form (c) hides what you type (d) is for one line of words
- 14.📝 Which tag gives a form box a name you can click? (a) <hr> (b) <h1> (c) <title> (d) <label>
- 15.What is <input type="radio"> for? (a) is for one line of words (b) lets you pick only one (c) hides what you type (d) sends the form
- 16.📝 Which tag holds a whole form? (a) <ol> (b) <form> (c) <table> (d) <input>
- 17.What is <input type="date"> for? (a) is for an email address (b) picks a day (c) lets you pick only one (d) hides what you type
-
18.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="checkbox" name="fruit"> Litchi
<input type="checkbox" name="fruit"> Banana
<input type="checkbox" name="fruit"> Mango
<input type="checkbox" name="fruit"> Guava
</form> - 19.True or false: <input type="number"> is for one line of words. (a) True (b) False
- 20.True or false: <input type="radio"> lets you pick only one. (a) True (b) False
- 21.True or false: <input type="submit"> sends the form. (a) False (b) True
- 22.What is <input type="password"> for? (a) lets you tick many (b) lets you pick only one (c) takes only numbers (d) hides what you type
- 23.True or false: <input type="password"> is for an email address. (a) False (b) True
- 24.True or false: <input type="submit"> hides what you type. (a) True (b) False
- 25.True or false: <input type="email"> is for an email address. (a) False (b) True
- 26.True or false: <input type="text"> is for one line of words. (a) True (b) False
-
27.📝 How many <input> tags are in this form?
<form>
<input type="number">
<input type="email">
<input type="checkbox">
<input type="text">
<input type="submit" value="Send">
</form> - 28.📝 Which tag makes a drop-down list? (a) <li> (b) <select> (c) <ol> (d) <ul>
-
29.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="radio" name="sport"> Chess
<input type="radio" name="sport"> Cricket
<input type="radio" name="sport"> Hockey
<input type="radio" name="sport"> Kabaddi
</form> - 30.True or false: <input type="number"> picks a day. (a) False (b) True
- 31.What is <input type="checkbox"> for? (a) lets you pick only one (b) lets you tick many (c) takes only numbers (d) picks a day
- 32.📝 Which input type lets you tick many? (a) checkbox (b) text (c) submit (d) password
-
33.📝 How many <input> tags are in this form?
<form>
<input type="checkbox">
<input type="text">
<input type="password">
<input type="number">
<input type="submit" value="Send">
</form> -
34.📝 How many <input> tags are in this form?
<form>
<input type="password">
<input type="date">
<input type="number">
<input type="submit" value="Send">
</form> - 35.True or false: <input type="submit"> takes only numbers. (a) True (b) False
-
36.📝 How many <input> tags are in this form?
<form>
<input type="date">
<input type="password">
<input type="email">
<input type="submit" value="Send">
</form> - 37.True or false: <input type="date"> is for one line of words. (a) True (b) False
-
38.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="radio" name="fruit"> Litchi
<input type="radio" name="fruit"> Mango
<input type="radio" name="fruit"> Guava
</form> -
39.📝 How many <input> tags are in this form?
<form>
<input type="number">
<input type="text">
<input type="checkbox">
<input type="submit" value="Send">
</form> -
40.📝 How many <input> tags are in this form?
<form>
<input type="password">
<input type="number">
<input type="checkbox">
<input type="submit" value="Send">
</form>
Answer key
- True
- <textarea>
- 3
- text
- is for one line of words
- number
- dots
- 6
- True
- password
- radio
- takes only numbers
- <label>
- lets you pick only one
- <form>
- picks a day
- 4
- False
- True
- True
- hides what you type
- False
- False
- True
- True
- 5
- <select>
- 1
- False
- lets you tick many
- checkbox
- 5
- 4
- False
- 4
- False
- 1
- 4
- 4
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids