Year 8 Computing — HTML lists and tables
Read an HTML list or table, count its items, rows and cells, and say which of its tags sits inside which.
Name: ________________________
1.Which tag closes “<li>”?
2.In “<ol><li>Wash</li><li>Cut</li><li>Cook</li><li>Serve</li></ol>”, what number will the browser print beside Cook?
3.This table has three rows and three cells in each row. Tap the cell in the second row, third along.
Write the number of the part.
4.How many rows does this table have: “<table><tr><td>1</td><td>2</td></tr><tr><td>3</td><td>4</td></tr><tr><td>5</td><td>6</td></tr></table>”?
5.A table is built from 5 row tags, and each row holds 3 cell tags. How many cells is that altogether?
6.How many cells does that same table hold altogether: “<table><tr><td>1</td><td>2</td></tr><tr><td>3</td><td>4</td></tr><tr><td>5</td><td>6</td></tr></table>”?
7.In “<ul><li>Red</li><li>Blue</li><li>Green</li><li>Black</li><li>White</li></ul>”, how many item tags are there altogether, counting the opening and closing tags separately?
8.How many items are in this list: “<ul><li>Pen</li><li>Ruler</li><li>Book</li><li>Bag</li></ul>”?
Answer key — Year 8 Computing — HTML lists and tables
- 1. </li>
- 2. 3
- 3. 6 — Row 2, cell 3
- 4. 3
- 5. 15
- 6. 6
- 7. 10
- 8. 4