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