← Forms and inputs lesson New set →

HTML Worksheet: Forms and Inputs

HTML and CSS lesson 21: Forms and inputs · Set 790 · 40 questions
TalentJR

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. 1.📝 Which input type is for one line of words? (a) checkbox (b) submit (c) radio (d) text
  2. 2.📝 At most, how many of these can be chosen at the same time?
    <form>
      <input type="checkbox" name="sport"> Football
      <input type="checkbox" name="sport"> Cricket
      <input type="checkbox" name="sport"> Hockey
      <input type="checkbox" name="sport"> Chess
      <input type="checkbox" name="sport"> Kabaddi
    </form>
  3. 3.📝 Which tag gives a form box a name you can click? (a) <h1> (b) <hr> (c) <title> (d) <label>
  4. 4.What is <input type="number"> for? (a) lets you pick only one (b) lets you tick many (c) takes only numbers (d) picks a day
  5. 5.📝 How many <input> tags are in this form?
    <form>
      <input type="checkbox">
      <input type="date">
      <input type="password">
      <input type="submit" value="Send">
    </form>
  6. 6.📝 How many <input> tags are in this form?
    <form>
      <input type="date">
      <input type="email">
      <input type="submit" value="Send">
    </form>
  7. 7.True or false: <input type="date"> takes only numbers. (a) True (b) False
  8. 8.📝 Which tag makes a big box for many lines of text? (a) <input> (b) <p> (c) <textarea> (d) <br>
  9. 9.True or false: <input type="text"> lets you tick many. (a) True (b) False
  10. 10.📝 How many <input> tags are in this form?
    <form>
      <input type="number">
      <input type="checkbox">
      <input type="email">
      <input type="submit" value="Send">
    </form>
  11. 11.📝 Which input type sends the form? (a) submit (b) password (c) text (d) number
  12. 12.What is <input type="text"> for? (a) hides what you type (b) lets you pick only one (c) lets you tick many (d) is for one line of words
  13. 13.What is <input type="checkbox"> for? (a) sends the form (b) takes only numbers (c) lets you tick many (d) hides what you type
  14. 14.📝 At most, how many of these can be chosen at the same time?
    <form>
      <input type="checkbox" name="colour"> Blue
      <input type="checkbox" name="colour"> Red
      <input type="checkbox" name="colour"> Orange
    </form>
  15. 15.What is <input type="email"> for? (a) is for one line of words (b) lets you pick only one (c) is for an email address (d) lets you tick many
  16. 16.True or false: <input type="number"> takes only numbers. (a) False (b) True
  17. 17.📝 Which tag makes a drop-down list? (a) <ul> (b) <li> (c) <select> (d) <ol>
  18. 18.True or false: <input type="text"> is for one line of words. (a) True (b) False
  19. 19.What is <input type="radio"> for? (a) takes only numbers (b) hides what you type (c) lets you pick only one (d) sends the form
  20. 20.What is <input type="password"> for? (a) picks a day (b) takes only numbers (c) lets you pick only one (d) hides what you type
  21. 21.📝 What does a password box show instead of letters? (a) emojis (b) dots (c) capital letters (d) numbers
  22. 22.📝 Which input type is for an email address? (a) number (b) text (c) email (d) password
  23. 23.True or false: <input type="text"> is for an email address. (a) True (b) False
  24. 24.True or false: <input type="submit"> sends the form. (a) False (b) True
  25. 25.📝 Which input type picks a day? (a) date (b) password (c) radio (d) text
  26. 26.📝 Which input type lets you pick only one? (a) radio (b) date (c) text (d) checkbox
  27. 27.True or false: <input type="number"> lets you pick only one. (a) True (b) False
  28. 28.📝 Which tag holds a whole form? (a) <form> (b) <table> (c) <input> (d) <ol>
  29. 29.True or false: <input type="password"> lets you tick many. (a) False (b) True
  30. 30.True or false: <input type="radio"> lets you tick many. (a) True (b) False
  31. 31.📝 Which input type takes only numbers? (a) number (b) email (c) submit (d) password
  32. 32.📝 Which input type lets you tick many? (a) radio (b) text (c) checkbox (d) email
  33. 33.📝 How many <input> tags are in this form?
    <form>
      <input type="number">
      <input type="password">
      <input type="checkbox">
      <input type="text">
      <input type="submit" value="Send">
    </form>
  34. 34.True or false: <input type="date"> picks a day. (a) False (b) True
  35. 35.What is <input type="submit"> for? (a) is for an email address (b) sends the form (c) lets you tick many (d) is for one line of words
  36. 36.What is <input type="date"> for? (a) is for one line of words (b) is for an email address (c) picks a day (d) lets you pick only one
  37. 37.📝 Which input type hides what you type? (a) number (b) text (c) password (d) radio
  38. 38.📝 How many <input> tags are in this form?
    <form>
      <input type="text">
      <input type="number">
      <input type="password">
      <input type="date">
      <input type="submit" value="Send">
    </form>
  39. 39.📝 At most, how many of these can be chosen at the same time?
    <form>
      <input type="checkbox" name="fruit"> Banana
      <input type="checkbox" name="fruit"> Mango
      <input type="checkbox" name="fruit"> Papaya
      <input type="checkbox" name="fruit"> Guava
      <input type="checkbox" name="fruit"> Litchi
    </form>
  40. 40.📝 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"> Guava
      <input type="checkbox" name="fruit"> Mango
      <input type="checkbox" name="fruit"> Banana
    </form>

Answer key

  1. text
  2. 5
  3. <label>
  4. takes only numbers
  5. 4
  6. 3
  7. False
  8. <textarea>
  9. False
  10. 4
  11. submit
  12. is for one line of words
  13. lets you tick many
  14. 3
  15. is for an email address
  16. True
  17. <select>
  18. True
  19. lets you pick only one
  20. hides what you type
  21. dots
  22. email
  23. False
  24. True
  25. date
  26. radio
  27. False
  28. <form>
  29. False
  30. False
  31. number
  32. checkbox
  33. 5
  34. True
  35. sends the form
  36. picks a day
  37. password
  38. 5
  39. 5
  40. 4

Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids