Share this Page URL

Chapter 10. Table Talk: Adding Tables to... > Table Refinishing—More Table Tidbits - Pg. 110

Table Talk: Adding Tables to Your Page <TR> <TD>Parsnip</TD><TD>14 feet, 3 &#190; inches</TD><TD>1990</TD> </TR> <TR> <TD>Zucchini</TD><TD>64 pounds, 8 ounces</TD><TD>1990</TD> </TR> </TABLE> 110 Creating a Row of Headers If your table displays stats, data, or other info, you can make your readers' lives easier by including at the top of each column labels that define what's in the column. (You don't need a long-winded explanation; in most cases, a word or two should do the job.) To define a header, use the <TH> and </TH> tags within a row, like so: <TR> <TH>First Column Header</TH> <TH>Second Column Header</TH> <TH>And So On, Ad Nauseum</TH> </TR> As you can see, the <TH> tag is a lot like the <TD> tag. The difference is that the browser displays text that appears between the <TH> and </TH> tags as bold and centered within the cell. This helps the reader differentiate the header from the rest of the table data. Remember, though, that headers are optional; you can bypass them if your table doesn't need them. Here's how I added the headers for the example you saw at the beginning of the chapter: <TABLE BORDER="1"> <TR> <TH>Comestible</TH><TH>Size</TH><TH>Year</TH>