You are here:  NetStrider » Tutorials » HTMLRef » Tables » TH «
<TH> Command

Command Syntax:

<TH command parameters>
  Header Cell Contents
</TH>

Defines a header cell within a row of table headers.  Any text placed within a header cell is automatically bolded in most browsers.

See also:  <TD>

Command Parameters:
All table header cell command attributes are identical with those used for the <TD> command.
Example:
<center> <table width=90% cellpadding=4 cellspacing=0 border=1> <tr> <th align=center valign=center> <font size=3> Header One </font> </th> <th align=center valign=center> <font size=3> Header Two </font> </th> </tr> <tr> <td align=center valign=center> <font size=3> Cell One </font> </td> <td align=center valign=center> <font size=3> Cell Two </font> </td> </tr> </table> </center>
Yields -

Header One Header Two
Cell One Cell Two

Note that the text within the table header cells is bolded even though the code above does not call for bolding.  Note, also, that the command parameters used to define the table header cells and table data cells are identical.  Both commands take the same parameter arguments.

Return to the HTML Reference Guide Section S:Z


HTML Reference Guide Table of Contents.
Author: Randy D. Ralph.  In place February 27, 1999.  Copyright © 1999 NetStrider.  Presented as a public service.




Hosted by uCoz