wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML- TABLE

Total questions: 20

Worksheet time: 12mins

Name
Class
Date
1.

How do you create a table in HTML?

a)

Use an image

b)

Use the <pre> tag.

c)

With the <table> tag along with various heading tags <th>, table row tags <tr>, and table data tags <td>.

d)

Don’t know

2.

How do you create a table row?

a)

With an opening and closing <td> tag.

b)

With an opening and closing <th> tag.

c)

With an opening and closing <tr> tag.

d)

Don’t know

3.

How do you create a table header?

a)

With a <pre> tag and a <strong> tag to highlight the text.

b)

With a <th> tag.

c)

With an opening and closing <th> tag for each column in your table.

d)

Don’t know

4.

The startinf tag of a table is:

a)

<tr>

b)

<table>

c)

<td>

d)

<tablet>

5.

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

6.

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

7.

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

8.

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)

3

b)

2

c)

1

d)

0

9.

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 column each

b)

3 rows with 2 column each

c)

3 rows and 3 columns

d)

3 rows and 5 columns

10.

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

a)

Yes

b)

No

11.

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

12.

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

a)

<table border="0">

b)

<table border="on">

c)

<table border="1">

d)

<table border="yes">

13.

Which of the following defines a single table column?

a)

The <td> tag

b)

The <tr> tag

c)

The <th> tag

d)

The <tablecolumn> tag

14.

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>

15.

Which of the following defines the content of table cells?

a)

The <th> tag

b)

The <td> tag

c)

The <tr> tag

d)

The <tablecell> tag

16.

Attribute name specifying the number of pixels of space between a cell well and its content


The statement above refer to which tag?

a)

width

b)

table

c)

cellpadding

d)

colspan

17.

An HTML Table with a Border Attribute:


Choose the correct tag.

a)

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

b)

the border-collapse property...

c)

</td>

d)

table, th, td { border: 1px solid black; border-collapse: collapse; }

18.

To add borders, use the CSS border property:

a)

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

b)

the border-collapse property...

c)

table, th, td { border: 1px solid black; }

d)

table, th, td { border: 1px solid black; border-collapse: collapse; }

19.

An HTML Table with Border Spacing:


Choose the correct tag.

a)

colspan=""

b)

table { border-spacing: 5px; }

c)

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

d)

<table style="width:100%"> <caption> Memrise </caption> </table>

20.

What is the correct HTML for creating a hyperlink? (note: Where you see a big space, that is where a bracket should be.)

a)

a url="http://www.google.com" Google.com /a

b)

a url=http://www.google.com /a

c)

a href="http://www.google.com" Google /a

d)

a name="http://www.google.com" Google.com /a