wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Tables and Its Elements

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.

What is the primary purpose of an HTML table?

a)

To style a webpage

b)

To organize and display data

c)

To create forms for user input

d)

To add images to a webpage

2.

Which HTML element is used to create a table?

a)

<div>

b)

<table>

c)

<tr>

d)

<td>

3.

What does the <tr> element represent in an HTML table?

a)

A table column

b)

A table row

c)

A table cell

d)

A table header

4.

What is the difference between <th> and <td> elements in a table?

a)

<th> is for table rows, <td> is for table cells

b)

<th> is for header cells, <td> is for data cells

c)

<th> and <td> are interchangeable

d)

<th> and <td> are interchangeable

5.

Which CSS property is commonly used to add borders to a table?

a)

border-collapse

b)

border-width

c)

border

d)

outline

6.

Which CSS property is used to collapse the borders between cells?

a)

border-spacing

b)

border-collapse

c)

cell-collapse

d)

collapse-borders

7.

The < (a)   > tag is used to create a table in HTML.

8.

Each row in a table is defined using the < (a)   > tag.

9.

Table headers are created using the <_____> tag, while data cells are created using the <_____> tag.


(a)  

10.

True or False?

A table border will always appear whenever a table is being created.

a)

True

b)

False