wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Tables

Total questions: 20

Worksheet time: 9mins

Name
Class
Date
1.

You are creating a website for a local bakery and you need to organize the list of products in a grid. Which tag could you use?

a)

<table>

b)

<tbl>

c)

<box>

d)

<grid>

2.
Which of the following creates a table row?
a)
<tr>
b)
<row>
c)
<trow>
d)
<rw>
3.

Which of these creates a heading cell within an HTML table?

a)
<h1>
b)
<head>
c)
<th>
d)

<thead>

4.

Which of these creates a column in an HTML table?

a)
<col>
b)
<td>
c)
<tcol>
d)
<data>
5.

Which of these define a cell in an HTML table?

a)
<td> </td>
b)
<cell> </cell>
c)

<tbody> </tbody>

d)

<th></th>

6.
Which of the following can be added to an html document?
a)
Tables
b)
Hyperlinks
c)
Lists
d)
All of these
7.
Which tags start and finish an HTML table element?
a)
<tab> </tab>
b)
<table> <table>
c)
<tr> </tr>
d)
<table> </table>
8.

Which of these is used to define a heading cell in an HTML table?

a)
<hr> </hr>
b)
<tr> </tr>
c)
<th> </th>
d)
<thr> </thr>
9.

Which of these defines a single cell in an HTML table?

a)
<td> </td>
b)
<cell> </cell>
c)
<tc> </tc>
d)

<tcell> </tcell>

10.

Which of these defines a row in an HTML table?

a)
<r> </r>
b)
<tr> </tr>
c)

<trow> </trow>

d)
<row> </row>
11.

What is a rowspan?

a)

An attribute used with <th> or <td> to span two or more columns

b)

An open-source framework containing HTML and CSS design templates

c)

An attribute used with <th> or <td> to span two or more rows

d)

An element required in every table

12.

What is a colspan?

a)

An attribute used with <th> or <td> to span two or more columns

b)

An open-source framework containing HTML and CSS design templates

c)

An attribute used with <th> or <td> to span two or more rows

d)

An element required in every table

13.

True or False?

A table border will always appear when a table is created.

a)

True

b)

False

14.

This tag can be used to group together the header rows of a table.

a)

<heading>

b)

<thead>

c)

<th>

d)

<headrows>

15.

The highlighted table rows could be grouped inside this tag.

a)

<td>

b)

<thead>

c)

<tbody>

d)

<rows>

16.

What is the overall size of this table (rows x columns)?

a)

3 x 2

b)

2 x 3

c)

6 x 1

d)

1 x 6

e)

None of these

17.

td and th

a)

can be used in rows

b)

can be used outside of rows

c)

can be used inside or outside of rows

d)

can be used anywhere inside the body

18.

Chose the best description of the <td> tag.

a)

a cell in a header row

b)

a column of a table

c)

a row of a table

d)

a cell in a data row

19.

What is the purpose of the 'td' tag in HTML tables?

a)

To create a new table

b)

To add a border to the table

c)

To represent table data

d)

To change the font size

20.

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

a)

<th> is for rows

<td> is for cells

b)

<th> is for headers <td> is for data

c)

<th> and <td> are interchangeable

d)

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