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