Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Understanding HTML Tables

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is the basic structure of an HTML table?

a)

The basic structure of an HTML table includes

, ,
, and elements.

b)

The basic structure of an HTML table consists of

, ,
, and
elements.

c)

An HTML table is structured with

, , , and
tags.

d)

The fundamental components of an HTML table are , ,

, and elements.

2.

Which tag is used to define a table in HTML?

a)

b)

c)

d)

3.

What attribute is used to specify the width of a table?

a)

size

b)

width

c)

length

d)

height

4.

How do you create a header row in an HTML table?

a)

Use

Title 1Title 2
for headers.

b)

Use

to create a header row.

c)

Apply

Column 1Column 2
to create headers.

d)

Implement

Header 1Header 2
Header Section for a header row.

5.

What tag is used to define a cell in a table?

a)

b)

c)

d)

6.

Which attribute can be used to add a border to a table?

a)

frame

b)

outline

c)

border

d)

margin

7.

How can you merge two cells in a table horizontally?

a)

Right-click and choose 'Combine Cells'.

b)

Highlight the cells and click 'Join'.

c)

Select the cells and press 'Ctrl + J' to merge.

d)

Select the cells and use the 'Merge Cells' option.

8.

What is the purpose of the 'colspan' attribute?

a)

To define the width of a table cell.

b)

To merge multiple rows into one cell.

c)

To set the background color of a table cell.

d)

To specify the number of columns a cell should span in a table.

9.

How do you add a caption to an HTML table?

a)

Your Header Here
...

b)

...

c)

Your Title Here...

d)

...
Your Caption Here

10.

What attribute would you use to set the alignment of table data?

a)

align

b)

float

c)

center

d)

justify