HTML Fifth Edition

Practice Test Chapter 4
INSTRUCTIONS: Answer each question below. Enter your name and click the 'Grade Test' button to receive a graded study guide. You will not get a grade until all questions are answered.
1.
The ____ attribute of the <table> tag controls table alignment (left, center, or right).
 A: align
 B: bgcolor
 C: border
 D: cellspacing
2.
The ____ attribute of the <tr> tag sets the vertical alignment of the row.
 A: vrow
 B: valign
 C: halign
 D: align
3.
To determine the height and width of an image use ____.
 A: a paint program
 B: an image editing program
 C: either a. or b.
 D: neither a. nor b.
4.
By default, a ____ displays normal text that is left-aligned.
 A: border
 B: row
 C: heading cell
 D: data cell
5.
A table should be used ____.
 A: if it will help organize information in such a way that it is easier to read
 B: if a Web page needs to display a structured, organized list of information
 C: if a Web page includes text and images that need to be positioned in a very specific way
 D: all of the above
6.
The ____ attribute of the <table> tag sets the background color for the table.
 A: align
 B: bgcolor
 C: border
 D: cellspacing
7.
The bgcolor attribute can be used with the ____ tag.
 A: <table>
 B: <tr>
 C: <td>
 D: all of the above
8.
If the cellspacing and cellpadding attributes are not used, the size of each data cell ____.
 A: is automatically set to be as large as possible
 B: is automatically set to be the size of the rest of the data cells
 C: is automatically set to the minimum size needed for the text inserted into the data cell
 D: is undefined; the table cannot be drawn without the cellspacing and cellpadding attributes
9.
In an HTML table, you can set attributes for ____.
 A: an entire row of information
 B: a single cell
 C: one or more cells within a row
 D: all of the above
10.
Conceptualizing the table on paper first saves time when you try to determine which HTML table ____ to use to create the table.
 A: notes
 B: blocks
 C: tags
 D: codes
11.
The ____ attribute of the <table> tag defines the width of the table border in pixels.
 A: align
 B: bgcolor
 C: border
 D: cellspacing
12.
The colspan attribute can be used with the ____ tag.
 A: <table>
 B: <tr>
 C: <td>
 D: all of the above
13.
Without a border, cellspacing increases the amount of ____ between cells.
 A: colored space
 B: whitespace
 C: content
 D: line width
14.
In an HTML table, a ____ is the line that encloses the perimeter of the table.
 A: table row
 B: table column
 C: table cell
 D: table border
15.
If a sketch of a table is made before the table is coded, it is easier to see ____.
 A: how many rows and columns to create
 B: if the table will include headings
 C: if any of the headings span rows or columns
 D: all of the above
16.
The ____ attribute of the <table> tag defines the space between cells in pixels.
 A: align
 B: bgcolor
 C: border
 D: cellspacing
17.
The ____ attribute of the <td> and <th> tags sets the number of columns spanned by a cell.
 A: colset
 B: setcol
 C: colspan
 D: spancol
18.
Captions are appropriate for tables used to ____.
 A: position images
 B: create menu bars
 C: structure columns and rows of information
 D: all of the above
19.
A ____ is any cell with bold text that indicates the purpose of the row or column.
 A: table header
 B: table title
 C: table caption
 D: table footer
20.
The HTML tags ____ indicate the start and end of a table.
 A: <table> </table>
 B: <tr> </tr>
 C: <th> </th>
 D: <td> </td>

Enter your name and click the 'Grade Test' button.