Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HOW TO MAKE TABLES IN HTML

Total questions: 50

Worksheet time: 26mins

Name
Class
Date
1.

is a group of columns and rows. When rows and

columns intersect they form a table data.

a)

Table

b)

Hyper link

2.

A Table is a group of columns and rows.

A is.............

a)

columns

b)

rows

3.

A Table is a group of columns and rows.

B is.............

a)

columns

b)

rows

4.

Table Data Can Include:

a)

Images

b)

Text

c)

Numbers

d)

Taskbar

e)

Folder

5.

To create a table in HTML we make the................Tag

a)

<TH>

b)

<TR>

c)

<TABLE>

d)

<TD>

6.

To create a Table Row we make the................Tag

a)

<TH>

b)

<TR>

c)

<TABLE>

d)

<TD>

7.

Each Table Data is either

a)

<TH>

b)

<TR>

c)

<TABLE>

d)

<TD>

8.

Table Header

a)

<TH>

b)

<TR>

c)

<TABLE>

d)

<TD>

9.

Table Data

a)

<TH>

b)

<TR>

c)

<TABLE>

d)

<TD>

10.

The default to make table data (td) to make the text

bold and align center change it to table header (th)

a)

True

b)

False

11.

<TR>

a)

OPEN ROW

b)

CLOSE ROW

12.

</TR>

a)

OPEN ROW

b)

CLOSE ROW

13.

To make either the table data(td) or table header(th) have a

background color we use the same attribute BGCOLOR learnt

early in BODY TAG

<td bgcolor=”RED”>1</td> OR

<th bgcolor=”BLUE”>Sunday</th>

a)

false

b)

true

14.

display information in a grid-like format of rows and columns.

a)

Table Data

b)

Table Header

15.

is the top row of a table that acts as a title for the type of information they will find in each column.

a)

Table Data

b)

Table Header

16.

Website Designer can make the content in every table data(td)

or table header(tr) centered by using

a)

align=”center/left/right”

<td align=”center” bgcolor=”Red”>1</td> OR

<Th align=”right” bgcolor=”Blue”>Sunday</th>

b)

BGCOLOR learnt

early in BODY TAG

<td bgcolor=”RED”>1</td> OR

<th bgcolor=”BLUE”>Sunday</th>

17.

Any Table Has A .................. ; which is the Table Title

a)

center

b)

Caption

c)

Font

18.

The Caption text will be

aligned ............ by default.

a)

Left

b)

center

c)

right

19.

As previously learnt any text in HTML can be formatted using

a)

<FONT>

b)

<CAPTION>

20.

choose the correct font code

a)

<FONT> <td>

<FONT face=”Verdana” size=”2” color=”blue”>

Sunday

</FONT>

</td>

b)

<td>

<FONT face=”Verdana” size=”2” color=”blue”>

Sunday

</td>

c)

<FONT> </td>

<FONT face=”Verdana” size=”2” color=”blue”>

Sunday

</FONT>

<td>

21.

choose the correct font code

a)

<CAPTION>

<FONT face=”Arial” size=”7” color=”green”>

THIS IS THE TABLE TITLE

</FONT>

</CAPTION>

b)

<CAPTION>

<FONT face=”Arial” size=”7” color=”green”>

THIS IS THE TABLE TITLE

</CAPTION>

c)

</CAPTION>

<FONT face=”Arial” size=”7” color=”green”>

THIS IS THE TABLE TITLE

</FONT>

<CAPTION>

22.

If the Website Designer wants to merge Rows 1 + 5 Together I

use

a)

ROWSPAN= “# OF ROWS”

b)

COLSPAN = “# OF COLUMNS”

c)

COLSPAN = # OF COLUMNS

d)

ROWSPAN= # OF ROWS

23.

If the Website Designer want to merge Columns 2 + 3 Together

a)

COLSPAN = “# OF COLUMNS”

b)

ROWSPAN= “# OF ROWS”

c)

COLSPAN = # OF COLUMNS

d)

ROWSPAN= # OF ROWS

24.

IS THE SPACE BETWEEN EACH CELL IN A TABLE

a)

CELLPADDING:

b)

CELLSPACING:

25.

IS THE SPACE INSIDE THE CELL. BETWEEN THE TEXT IN THE

CELL AND CELL WALL

a)

CELLPADDING:

b)

CELLSPACING:

26.

A

a)

CELLPADDING:

b)

CELLSPACING:

27.

B

a)

CELLPADDING:

b)

CELLSPACING:

28.

WHICH SENTENCE IS CORRECT

a)

CELLSPACING OR/AND CELLPADDING WILL NOT SHOW

UNLESS A BORDER=”1” ATTRIBUTE IS ADDED IN THE TABLE TAG.

b)

CELLSPACING OR/AND CELLPADDING WILL SHOW

A BORDER=”1” ATTRIBUTE IS ADDED IN THE TABLE TAG.

29.
a)

b)

30.
a)
b)
31.

A

a)

TABLE

b)

CELL

c)

CELL SPACING

d)

CELL PADDING

e)

SPACE FOR TEXT

32.

B

a)

TABLE

b)

CELL

c)

CELL SPACING

d)

CELL PADDING

e)

SPACE FOR TEXT

33.

C

a)

TABLE

b)

CELL

c)

CELL SPACING

d)

CELL PADDING

e)

SPACE FOR TEXT

34.

D

a)

TABLE

b)

CELL

c)

CELL SPACING

d)

CELL PADDING

e)

SPACE FOR TEXT

35.

E

a)

TABLE

b)

CELL

c)

CELL SPACING

d)

CELL PADDING

e)

SPACE FOR TEXT

36.

Is this a correct table?

<table>

<tr><td>This is part 1</td></tr>

<tr>This is part 2</tr>

</table>

a)

YES

b)

NO

37.

Is this a correct table?

<table>

<tr><td>This is part 1</td> <tr>

<td>This is part 2</td></tr>

</table>

a)

YES

b)

NO

38.

Is this a correct table?

<table>

<tr><td>This is part 1</td></tr>

<tr><td>This is part 2</td></tr>

</table>

a)

YES

b)

NO

39.

A <tr> element can have 0 <td> elements inside

a)

YES

b)

NO

40.

enclose the following into a table raw

<td>John Papas</td>

a)

<tr><td>John Papas</td></tr>

b)

<tr><td>"John Papas"</td></tr>

41.

How many rows and columns does the following table have?

<table>

<tr><td>Col 1</td> <td>Col 4</td></tr>

<tr><td>Col 2</td><td>Col 5</td></tr>

<tr><td>Col 3</td><td>Col 6</td></tr>

</table>

a)

2 rows with 3 columns each

b)

3 rows with 2 columns each

c)

3 rows and 3 columns

d)

3 rows and 5 columns

42.

How many rows does the following table have?

<table>

<tr><td>Col 1</td></tr>

<tr><td>Col 2</td><td>Col3</td></tr>

<tr><td>Col 3</td></tr>

</table>

a)

1

b)

2

c)

3

d)

4

43.

With which CSS table property can you specify values of left, center, right and justify?

a)

The border property

b)

The text-align property

c)

The width property

d)

The vertical-align property

44.

What table element attribute do you need to specify to add a border to a table?

a)

<table border="0">

b)

<table border="1">

c)

<table border="on">

d)

<table border="yes">

45.

Which of the following defines a single table column?

a)

The <td> tag

b)

The <th> tag

c)

The <tr> tag

d)

The <tablecolumn> tag

46.

Which of the following table element tags are required when you use the <table> tag to create a table?

a)

able row <tr> and table data <td>

b)

Table caption <caption> and table data <td>

c)

Table header <th> and table data <td>

d)

Table caption <caption> and table header <th>

47.

An HTML Table with Border Spacing:

Choose the correct tag.

a)

colspan=""

b)

<table><tr><td clospan="2"> Memrise </td></tr></table>

c)

table { border-spacing: 5px; }

d)

<table > <caption> Memrise </caption> </table>

48.

An HTML Table with a Border Attribute:

Choose the correct tag.

a)

<table border="1" style="width:100%">

b)

the border-collapse property...

49.

Make the following cell span 5 columns.

<tr><td ></td></tr>

a)

<tr><td colspan="5"></td></tr>

b)

<tr><td> colspan="5"></td></tr>

50.

Add a 3-wide border on the following table:

<table ____>

<tr><td>Column 1</td></tr>

</table>

a)

<table border="3">

<tr><td>Column 1</td></tr>

</table>

b)

<table ”3”>

<tr><td>Column 1</td></tr>

</table>