← Tables lesson New set →

HTML Worksheet: Tables

HTML and CSS lesson 22: Tables · Set 18 · 40 questions
TalentJR

Code tip (Rows hold cells): <table> holds rows <tr>; each row holds cells <td> (data) or <th> (heading). Rows = number of <tr>; cells in a row = <td> + <th> in it. Total cells = rows × cells per row.

NameDateTime takenScore ___ / 40
  1. 1.📊 Are <th> cells shown bold and centred by default? (a) No (b) Yes
  2. 2.True or false: <th> holds the whole table. (a) True (b) False
  3. 3.📊 How many rows does this table have?
    <table>
      <tr><td>Grapes</td><td>Banana</td><td>Mango</td></tr>
      <tr><td>Litchi</td><td>Mango</td><td>Grapes</td></tr>
    </table>
  4. 4.📊 How many rows does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th></tr>
      <tr><td>Banana</td><td>Guava</td></tr>
      <tr><td>Banana</td><td>Mango</td></tr>
      <tr><td>Guava</td><td>Mango</td></tr>
    </table>
  5. 5.True or false: <td> gives the table a title. (a) False (b) True
  6. 6.📊 In a table, which tag is a row? (a) <tr> (b) <tb> (c) <th> (d) <td>
  7. 7.True or false: <caption> makes one table row. (a) False (b) True
  8. 8.📊 How many cells are in each row?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
      <tr><td>Guava</td><td>Jamun</td><td>Mango</td></tr>
    </table>
  9. 9.📊 How many cells are in each row?
    <table>
      <tr><td>Guava</td><td>Litchi</td><td>Banana</td></tr>
      <tr><td>Guava</td><td>Mango</td><td>Papaya</td></tr>
      <tr><td>Orange</td><td>Litchi</td><td>Banana</td></tr>
    </table>
  10. 10.📊 How many rows does this table have?
    <table>
      <tr><td>Mango</td><td>Orange</td><td>Orange</td><td>Litchi</td></tr>
      <tr><td>Orange</td><td>Grapes</td><td>Jamun</td><td>Mango</td></tr>
      <tr><td>Guava</td><td>Guava</td><td>Orange</td><td>Banana</td></tr>
    </table>
  11. 11.📊 Where do <td> cells go? (a) inside a <p> (b) inside the <head> (c) inside a <li> (d) inside a <tr>
  12. 12.📊 Which tag makes one table row? (a) <tr> (b) <td> (c) <th> (d) <caption>
  13. 13.📊 How many heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Banana</td><td>Guava</td><td>Litchi</td><td>Grapes</td></tr>
      <tr><td>Litchi</td><td>Jamun</td><td>Mango</td><td>Guava</td></tr>
    </table>
  14. 14.True or false: <table> holds the whole table. (a) False (b) True
  15. 15.📊 How many rows does this table have?
    <table>
      <tr><td>Guava</td><td>Jamun</td></tr>
      <tr><td>Orange</td><td>Papaya</td></tr>
      <tr><td>Orange</td><td>Grapes</td></tr>
    </table>
  16. 16.True or false: <td> makes one data cell. (a) True (b) False
  17. 17.📊 Which tag gives the table a title? (a) <caption> (b) <th> (c) <tr> (d) <table>
  18. 18.True or false: <caption> gives the table a title. (a) False (b) True
  19. 19.📊 How many cells does this table have in all?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Litchi</td><td>Guava</td><td>Orange</td><td>Grapes</td></tr>
      <tr><td>Grapes</td><td>Mango</td><td>Mango</td><td>Orange</td></tr>
      <tr><td>Banana</td><td>Guava</td><td>Grapes</td><td>Papaya</td></tr>
    </table>
  20. 20.True or false: <tr> holds the whole table. (a) True (b) False
  21. 21.📊 How many rows does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
      <tr><td>Mango</td><td>Mango</td><td>Litchi</td></tr>
    </table>
  22. 22.📊 How many cells are in each row?
    <table>
      <tr><td>Grapes</td><td>Mango</td></tr>
      <tr><td>Grapes</td><td>Orange</td></tr>
      <tr><td>Mango</td><td>Guava</td></tr>
      <tr><td>Banana</td><td>Orange</td></tr>
    </table>
  23. 23.📊 How many rows does this table have?
    <table>
      <tr><td>Jamun</td><td>Guava</td><td>Jamun</td></tr>
      <tr><td>Jamun</td><td>Mango</td><td>Banana</td></tr>
      <tr><td>Litchi</td><td>Litchi</td><td>Mango</td></tr>
      <tr><td>Grapes</td><td>Grapes</td><td>Guava</td></tr>
    </table>
  24. 24.📊 How many cells are in each row?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Litchi</td><td>Grapes</td><td>Jamun</td><td>Jamun</td></tr>
    </table>
  25. 25.📊 How many cells does this table have in all?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Guava</td><td>Guava</td><td>Orange</td><td>Litchi</td></tr>
      <tr><td>Orange</td><td>Jamun</td><td>Papaya</td><td>Orange</td></tr>
      <tr><td>Mango</td><td>Mango</td><td>Banana</td><td>Papaya</td></tr>
    </table>
  26. 26.True or false: <tr> makes a heading cell. (a) True (b) False
  27. 27.📊 How many cells are in each row?
    <table>
      <tr><td>Jamun</td><td>Litchi</td><td>Banana</td></tr>
      <tr><td>Mango</td><td>Grapes</td><td>Jamun</td></tr>
      <tr><td>Grapes</td><td>Banana</td><td>Grapes</td></tr>
      <tr><td>Litchi</td><td>Guava</td><td>Jamun</td></tr>
    </table>
  28. 28.📊 How many cells does this table have in all?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Grapes</td><td>Orange</td><td>Banana</td><td>Mango</td></tr>
    </table>
  29. 29.True or false: <th> makes a heading cell. (a) True (b) False
  30. 30.📊 How many cells are in each row?
    <table>
      <tr><th>Name</th><th>Fruit</th></tr>
      <tr><td>Mango</td><td>Guava</td></tr>
      <tr><td>Litchi</td><td>Papaya</td></tr>
    </table>
  31. 31.📊 How many heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th></tr>
      <tr><td>Jamun</td><td>Papaya</td></tr>
    </table>
  32. 32.📊 How many cells does this table have in all?
    <table>
      <tr><td>Mango</td><td>Banana</td></tr>
      <tr><td>Banana</td><td>Banana</td></tr>
      <tr><td>Mango</td><td>Litchi</td></tr>
      <tr><td>Jamun</td><td>Banana</td></tr>
    </table>
  33. 33.📊 How many cells are in each row?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Litchi</td><td>Jamun</td><td>Papaya</td><td>Orange</td></tr>
      <tr><td>Papaya</td><td>Guava</td><td>Banana</td><td>Papaya</td></tr>
      <tr><td>Banana</td><td>Orange</td><td>Jamun</td><td>Papaya</td></tr>
    </table>
  34. 34.📊 How many rows does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
      <tr><td>Orange</td><td>Mango</td><td>Guava</td></tr>
    </table>
  35. 35.📊 How many rows does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th></tr>
      <tr><td>Orange</td><td>Papaya</td></tr>
    </table>
  36. 36.📊 Which tag makes a heading cell? (a) <table> (b) <tr> (c) <th> (d) <caption>
  37. 37.📊 How many cells are in each row?
    <table>
      <tr><td>Litchi</td><td>Grapes</td></tr>
      <tr><td>Banana</td><td>Litchi</td></tr>
      <tr><td>Grapes</td><td>Mango</td></tr>
    </table>
  38. 38.📊 How many heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Guava</td><td>Guava</td><td>Guava</td><td>Jamun</td></tr>
      <tr><td>Mango</td><td>Mango</td><td>Papaya</td><td>Orange</td></tr>
      <tr><td>Mango</td><td>Jamun</td><td>Litchi</td><td>Orange</td></tr>
    </table>
  39. 39.📊 How many cells are in each row?
    <table>
      <tr><td>Mango</td><td>Grapes</td><td>Orange</td></tr>
      <tr><td>Banana</td><td>Litchi</td><td>Grapes</td></tr>
    </table>
  40. 40.📊 Which tag holds the whole table? (a) <caption> (b) <table> (c) <tr> (d) <td>

Answer key

  1. Yes
  2. False
  3. 2
  4. 4
  5. False
  6. <tr>
  7. False
  8. 3
  9. 3
  10. 3
  11. inside a <tr>
  12. <tr>
  13. 4
  14. True
  15. 3
  16. True
  17. <caption>
  18. True
  19. 16
  20. False
  21. 2
  22. 2
  23. 4
  24. 4
  25. 16
  26. False
  27. 3
  28. 8
  29. True
  30. 2
  31. 2
  32. 8
  33. 4
  34. 2
  35. 2
  36. <th>
  37. 2
  38. 4
  39. 3
  40. <table>

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