Tutorial 2 - Headers and Table Captions
Part A:
HTML provides a special tag for cells that will act as table headers (or column headings): the < TH > tag. Like the < TD > tag used for table data, the < TH > tag is used for cells within the table. The difference between the < TH > and < TD > tag is that text formated witht eh < TH > tag is cecntered withing the cell and displayed in a bolder font. A table can have several rows of table headers. In fact, because the < TH > tag is a replacement for the < TD > tag, you can use the < TH > tag for any cell containing text that you want to be desplayed in centered bold text.
Your code with the < TH > tag should look like:
Note: Remove X and extra spacecs in code to properly create your table
< XTABLE >
< XTR >
< XTH > Name < X/TH >
< XTH > Age < X/TH >
< XTH > Birthday < X/TH >
< XTH > Hair Color < X/TH >
< X/TR >
< XTR >
< XTD > Jessica < X/TD >
< XTD > 17 < X/TD >
< XTD > March 16, 1985 < X/TD >
< XTD > Red < X/TD >
< X/TR >
< X/TABLES >
This example creates a table with four rows and two columns, displaying a total of eight cells. This is what your table should looks like:
| Name |
Age |
Birthday |
Hair Color |
| Jessica |
17 |
March 16, 1985 |
Red |
Part B