HTML Table TH Tag


HTML Table TH Tag

    The <th></th> tags define a cell as a table header. It makes a column but, makes bolder characters.

Syntax


<table><tr>
<TH width=xxx bgcolor="#rrggbb" align=positionvalign=position colspan=number>

  text-or-graphics

</TH>
</tr></table>

Modifiers

WIDTH=number
The width is the width of the cell in either pixels or the percentage of the screen (ie; 80%).
ALIGN=position
The align modifier controls the location of an item that is shorter than the screen
width. It can be LEFT, CENTER or RIGHT.
VALIGN=position
The valign modifier controls the vertical locations for the cell. It can be TOP, MIDDLE or BOTTOM.
BGCOLOR="color"
Defines the background color.
COLSPAN=number
Makes the current cell the width of number cells. This is a very useful HTML table trick.