How To Create HTML Documents
(Hypertext Markup Language)
Continued
Page 4
Tables Continued
<th>...</th> This stands for table header. Header cells are identical to data cells in all respects, with the exception that header cells are in a bold FONT, and have a default ALIGN=center.
<TH> ... </TH> can contain the following attributes
ALIGN
BGCOLOR
BORDERCOLOR
Here is an example
<table border=2 cellspacing="3" cellspading="3" width="70%" align="center" bgcolor="#000080" bordercolor="#FF0000">
<tr>
<th bgcolor="#008000">Heading 1</th>
<th bgcolor="#008000">Heading 2</th>
</tr>
<tr>
<td>Data cell 1</td>
<td>Data cell 2</td>
</tr>
<tr>
<td>Data cell 3</td>
<td>Data cell 4</td>
</tr>
</table>
It will appear like this:
| Heading 1 |
Heading 2 |
| Data cell 1 |
Data cell 2 |
| Data cell 3 |
Data cell 4 |
Next Return to Main page