HTML and CSS Reference
In-Depth Information
CHAPTER SUMMARY
This chapter introduces both the XHTML techniques used to code tables to organize information and config-
ure page layout and the CSS properties that configure the display of tables on Web pages. As you use these
skills to design Web pages, keep in mind that while you'll see many examples of table page layout on the
Web, configuring page layout with CSS is the preferred method.
Visit the textbook Web site at http://www.webdevfoundations.net for examples, the links listed in this chapter,
and updated information.
Key Terms
border attribute
border-collapse property
cell
cellpadding attribute
cellspacing attribute
colspan attribute
fixed-width table
flexible-width table
headers attribute
nested tables
rowspan attribute
scope attribute
summary attribute
title attribute
vertical-align property
valign attribute
<caption>
<table>
<tbody>
<td>
<tfoot>
<th>
<thead>
<tr>
align attribute
Review Questions
Multiple Choice
1. Which XHTML attribute specifies the distance
between the edges of each cell?
a. cellpad
b. cellpadding
c. cellspacing
d. cellborder
4. Which XHTML element uses a border attribute
to display a table with a border?
a. <td>
b. <tr>
c. <table>
d. <tableborder>
2. Which XHTML attribute specifies the distance
between the cell text and the cell border?
a. cellpad
b. cellpadding
c. cellspacing
d. cellborder
5. Which XHTML tag pair is used to specify table
headings?
a. <td> </td>
b. <th> </th>
c. <head> </head>
d. <tr> </tr>
3. Which XHTML tag pair is used to group rows in
the footer of a table?
a. <footer> </footer>
b. <tr> </tr>
c. <tfoot> </tfoot>
d. none of the above
339
 
Search WWH ::




Custom Search