wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Table

Total questions: 13

Worksheet time: 9mins

Name
Class
Date
1.

What is the purpose of the <table> tag in HTML?

a)

To create a list of items

b)

To format text

c)

To structure data into rows and columns

d)

To insert images

2.

Which tag is used to define a row within a table

a)

<tr>

b)

<td>

c)

<th>

d)

<table>

3.

How do you merge two or more cells vertically in a table?

a)

Use the rowspan attribute

b)

Use the colspan attribute

c)

Use the merge attribute

d)

Use the span attribute

4.

What is the purpose of the Cellpadding attribute in the <table> tag?

a)

To add a border around the table

b)

To set the width of the table

c)

Adjusts the spacing between the content and the table

border lines.

d)

Adjusts the spacing between cells/data

5.

What HTML tag do we use to create a result like the image on the side?

(a)  

6.

What is the difference between a <td> and a <tr> tag?

a)

<td> is used for table data, while <tr> is used for table headers

b)

<td> is used for table data, while <tr> is used for table Columns

c)

<td> is used for Cell, while <tr> is used for Row

d)

There is no difference between the two

7.

What HTML tag do we use to create a result like the image on the side?

(a)  

8.

"Adjusts the spacing between cells/data" is definition for.........

a)

Border

b)

Rowspan

c)

Cellspacing

d)

Colspan

9.

Which attribute is used to specify the width of a table in HTML?

a)

width

b)

size

c)

table-width

d)

colwidth

10.

What does the <td> tag represent in a table?

a)

Table header cell

b)

Table data cell

c)

Table row

d)

Table footer

11.

What HTML attribute do we use to merge cells vertically?

a)

Colspan

b)

cellspacing

c)

Rowspan

d)

Merging

12.

What HTML attribute do we use to merge cells horizontaly?

a)

Colspan

b)

cellspacing

c)

Rowspan

d)

Merging

13.

Basic structure of HTML

<​​ ​ (a)   >

<html>

<head>

<​ (b)   ><​ (c)  

<​ (d)  

<​ (e)   >

</body>

</html>

Choose from the below words
!Doctype html
title
/title>
/head>
body
<b>
<paragraph>
<i>
<opening>
</html>