HTML and CSS Reference
In-Depth Information
Fill in the Blank
10. The CSS ____________________ property can be
used to configure the color and width of a table
border.
6. Which XHTML attribute specifies the back-
ground color of a table?
a. background
b. bgcolor
c. background-color
d. none of the above
11. The ____________________ attribute specifies the
vertical alignment of the contents of a cell in a
table.
7. Which XHTML tag pair is used to begin and end
a table row?
a. <td> </td>
b. <tr> </tr>
c. <table> </table>
d. none of the above
12. A table with a width set to 600 pixels will look
____________________ on a monitor with
resolution set to 640
480 than on a monitor
with resolution set to 1024
×
×
768.
13. ____________________ is an attribute of the
<table> element that provides accessibility.
8. Which of the following are common uses of
tables on Web pages?
a. configuring the layout of an entire page
b. organizing information
c. forming hyperlinks
d. both a and b
14. ____________________ is a CSS property that can
be used to configure the padding of table cells.
Short Answer
15. Explain why it is a good practice to use CSS to
configure page layout instead of an XHTML table.
9. Which CSS property specifies the background
color of a table?
a. background
b. bgcolor
c. background-color
d. none of the above
Apply Your Knowledge
1. Predict the Result. Draw and write a brief description of the Web page that will be
created with the following XHTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Predict the Result</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<table border="0" bgcolor="#cccccc" width="80%">
<tr>
<td bgcolor="#0000FF" colspan="3">
<h1>Trillium Media Design</h1>
</td>
</tr>
 
Search WWH ::




Custom Search