Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML tables

Total questions: 53

Worksheet time: 33mins

Name
Class
Date
1.
Which of the following tag is used to begin creating a table in an HTML document?
a)
<table>
b)
<tbl>
c)
</table>
d)
</tbl>
2.
Which of the following creates a table row?
a)
<tr>
b)
<row>
c)
<trow>
d)
<rw>
3.
Which of the following will create a column in an HTML table?
a)
<col>
b)
<td>
c)
<tcol>
d)
<data>
4.
Which of the following tags is used to create a heading within an HTML table?
a)
<h1>
b)
<head>
c)
<th>
d)
<h2>
5.
Which opening and closing tags are used to define a cell in an HTML table element?
a)
<td> </td>
b)
<cell> </cell>
c)
<tc> </tc>
d)
<td> <td>
6.
Which is the extension for HTML files?
a)
.exe
b)
 .doc
c)
.excel
d)
.html
7.
Which of the following can be added to an html document?
a)
Tables
b)
Hyperlinks
c)
Lists
d)
All of these
8.
What does this tag do:
<a href = “  “ > … <a/> 
a)
Links to an image saved in your work area
b)
Links to an image from a website
9.
The default link color for hyperlinks:
a)
green
b)
blue
c)
purple
d)
red
10.
Which tag is used to create a hyperlink?
a)
<a>
b)
<href>
c)
<b>
d)
<i>
11.

th

a)

one cell in a row of headers

b)

one data cell

c)

one row of headers

d)

one column of headers

12.

tr

a)

one column on the right

b)

one cell in a table

c)

one row of anything

d)

one column of anything

13.

td

a)

one cell in a header

b)

one column of a row

c)

one row of a column

d)

one data cell in a row

14.

caption

a)

can be set only for header rows

b)

can be set for each row

c)

will appear at the top of table

d)

will appear at the bottom of a table

15.

td and th

a)

can appear only in rows

b)

cannot be used in rows

c)

can be used outside of rows

d)

can be used outside of columns

16.

colspan

a)

can only be used in caption

b)

can be used only in td

c)

can be used only in td or th

d)

be be used only in tr

17.

rowspan

a)

can only be used in caption

b)

can be used only in td

c)

can be used only in td or th

d)

be be used only in tr

18.

The closing table tag is

a)

</close>

b)

</caption>

c)

</table>

d)

<table>

19.

The opening caption tag is

a)

<table>

b)

<caption>

c)

<tblcaption>

d)

<figcaption>

20.

rowspan="2"

a)

one td or th spans 2 columns

b)

all td or th spans 2 columns

c)

one td or th spans 2 rows

d)

one tr spans 2 rows

21.
Which of the following tag is used to begin creating a table in an HTML document?
a)
<table>
b)
<tbl>
c)
</table>
d)
</tbl>
22.
Which of the following creates a table row?
a)
<tr>
b)
<row>
c)
<trow>
d)
<rw>
23.
Which of the following will create a column in an HTML table?
a)
<col>
b)
<td>
c)
<tcol>
d)
<data>
24.
Which of the following tags is used to create a heading within an HTML table?
a)
<h1>
b)
<head>
c)
<th>
d)
<h2>
25.
Which opening and closing tags are used to define a cell in an HTML table element?
a)
<td> </td>
b)
<cell> </cell>
c)
<tc> </tc>
d)
<td> <td>
26.
Which is the extension for HTML files?
a)
.exe
b)
 .doc
c)
.excel
d)
.html
27.

What is a rowspan?

a)

An attribute that is used with <th> or <td> element to horizontally span two or more columns.

b)

An open-source and front-end framework that contains HTML and CSS design templates.

c)

An attribute that is used with <th> or <td> element to vertically span two or more rows

d)

This is an element that we used on every website

28.

What is a colspan?

a)

An attribute that is used with <th> or <td> element to horizontally span two or more columns.

b)

An open-source and front-end framework that contains HTML and CSS design templates.

c)

An attribute that is used with <th> or <td> element to vertically span two or more rows

d)

This is an element that we used on every website

29.

What is a Bootstrap?

a)

An attribute that is used with <th> or <td> element to horizontally span two or more columns.

b)

An open-source and front-end framework that contains HTML and CSS design templates.

c)

An attribute that is used with <th> or <td> element to vertically span two or more rows

d)

This is an element that we used on every website

30.

What is padding?

a)

An Attribute that identifies the number of table rows a single cell can occupy

b)

A property used to manipulate the amount of space between cell content and the cell's inner border

c)

A property used to manipulate the amount of space between borders of adjacent table cells

d)

A property that determines how far the table or cell will extend horizontally across the page

31.

What is border-spacing?

a)

An Attribute that identifies the number of table rows a single cell can occupy

b)

A property used to manipulate the amount of space between cell content and the cell's inner border

c)

A property used to manipulate the amount of space between borders of adjacent table cells

d)

A property that determines how far the table or cell will extend horizontally across the page

32.

What is the width which is used in HTML Tables?

a)

An Attribute that identifies the number of table rows a single cell can occupy

b)

A property used to manipulate the amount of space between cell content and the cell's inner border

c)

A property used to manipulate the amount of space between borders of adjacent table cells

d)

A property that determines how far the table or cell will extend horizontally across the page

33.

What are the start tag and end tag codes for the table header?

a)

<table></table>

b)

<th></th>

c)

<header></header>

d)

<th/>

34.

What are the start tag and end tag codes for the table data?

a)

<td></td>

b)

<data></data>

c)

<table></table>

d)

<td/>

35.

What are the start tag and end tag codes for the table row?

a)

<row></row>

b)

<table></table>

c)

<tr></tr>

d)

<tablerow></tablerow>

36.

What is a table caption?

a)

Creates a table. Contains all other table elements.

b)

Adds a caption or title, which appears above the table by default.

c)

Contains all data for a table row

d)

Designates table cell contents. By default, the data is left-justifed.

37.

What is a table row?

a)

Creates a table. Contains all other table elements.

b)

Adds a caption or title, which appears above the table by default.

c)

Contains all data for a table row

d)

Designates table cell contents. By default, the data is left-justified.

38.

What is table data?

a)

Creates a table. Contains all other table elements.

b)

Adds a caption or title, which appears above the table by default.

c)

Contains all data for a table row

d)

Designates table cell contents. By default, the data is left-justified.

39.

What is a table?

a)

Creates a table. Contains all other table elements.

b)

Adds a caption or title, which appears above the table by default.

c)

Contains all data for a table row

d)

Designates table cell contents. By default, the data is left-justified.

40.

What is a table header?

a)

Creates a table. Contains all other table elements.

b)

Typically designates cells in the top row or left column. By default, text in a header cell will appear bold and centered.

c)

Contains all data for a table row

d)

Designates table cell contents. By default, the data is left-justified.

41.

True or False?

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

a)

True

b)

False

42.

True or False?

Border-Collapse Collapses the borders of adjacent cells into a single border instead of separating them.

a)

True

b)

False

43.
Which opening and closing tags are used to define a row in an HTML table element?
a)
<r> </r>
b)
<tr> </tr>
c)
<tr> <tr>
d)
<row> </row>
44.
Which opening and closing tags are used to define a cell in an HTML table element?
a)
<td> </td>
b)
<cell> </cell>
c)
<tc> </tc>
d)
<td> <td>
45.

Which is an example of a complete Hyperlink tag?

a)

a href="list.html" LIST a

b)

<a href="list.html"> LIST </a>

c)

<a="list.html"> LIST </a>

d)

<a href="list"> LIST </a>

46.
What is the second tag that you put in a html document?
a)
<head>
b)
<header>
c)
<title>
d)
<!DOCTYPE html>
47.
In a basic web page, what is the third tag that you might put in a html document?
a)
<title>
b)
<header>
c)
<!DOCTYPE html>
d)
<html>
48.
"Forces a line break here"
From the text above, What is the command tag?
a)
<br>
b)
<hr>
c)
<p>
d)
<ul>
49.
"Defines a thematic break in an HTML page, and is most often displayed as a horizontal rule"
From the text above, What is the command tag?
a)
<hr>
b)
<br>
c)
<ul>
d)
<html>
50.
Choose the correct answer.
a)
</p>
b)
:p
c)
p:
d)
<p>
51.
Choose the correct answer.
a)
<h2>
b)
<h1>
c)
<h6>
d)
<h3>
52.
Choose the correct answer.
a)
pic
b)
pict
c)
jpeg
d)
img
53.
Choose the correct answer.
a)
href=
b)
<a>=
c)
link=
d)
element=