169
CHAPTER
Adding Tables and Lists 7
Do the header cells have to be in the first row of
the table?
No. For some tables, header cells in the left column
make more sense. Others might have headers in both
the first row and the left column, and still others
might have multiple headers. You can use the <th>
tag anywhere that it logically makes sense to have
the header.
Can I have headers that are not bold or centered?
Yes. Simply create a CSS declaration for the <th>
tag, and set font-weight:normal to override
the bold and text-align:left to override the
alignment. You could, of course, add other
properties as well, perhaps setting the background
color of the headers or making the font larger.
● When you view the page in
the browser, the header cells
are bold and centered.
4 Repeat Steps 2 and 3 for
each remaining cell in the
row.
4
TIPS