Orvado Technologies is your one-stop shop for custom web site solutions, quality work at affordable rates
 
orvado side

<TH>

The table header (TH) tag is used to define table headers which are usually rendered in a strongly emphasized font. Typically, these are used to create column headers which appear in the first column or row headers which appear in the first row.

A closing tag is required for this element.

Attributes

Attribute Description
ID Identifies this tag to reference in script (program code)
CLASS Define the class used to render this element (defined by a style sheet)
TITLE A title that is associated with the element (displayed as a tooltip in Internet Explorer)
SCOPE Defines a list of table data (TD) cells which this header provides information for. Possible values are: "row", "col", "rowgroup" and "colgroup".
ABBR Contains an abbreviated version of the contents of the table cell. This is mainly used for non-visual user-agents and speech rendering applications.
AXIS Use this attribute to place a cell into a conceptual category that forms the axes in an n-dimensional space.
ROWSPAN Indicats the total number of rows this table cell occupies. By default, a table cell will only occupy one row. You may assign the special value of zero ("0") to indicate the cell should occupy all rows starting from the current row to the last.
COLSPAN Specifies the total number of columns this table cell occupies. By default, a table cell will only occupy one column. You may assign the special value of zero ("0") to indicate the cell should occupy all columns starting from the current column to the last.
NOWRAP [DEPRECATED] Indicates that no wrapping of text should occur within this table header element
WIDTH Define a recommened cell width for the table header. This can be a number of pixels or a percentange of the total available width. The user-agent is free to set cell widths as needed to resolve conflicts.
HEIGHT Define a recommened cell height for the table header. This can be a number of pixels or a percentange of the total available height. The user-agent is free to set cell widths as needed to resolve conflicts.
BGCOLOR Defines a background color to render this table cell with. This should be a red-green-blue triplet value such as "#ffc0ff" or one of the pre-defined color constants.
ALIGN Specifies the horizontal alignment of the content placed within the table header element. This may be one of the following: "left", "right" or "center".
VALIGN Specifies the vertical alignment of the content placed within table cells inside this table row element. This may be one of the following: "top", "bottom" or "center".

Example

<TABLE BORDER="1" CELLPADDING="2" CELLSPACING="10" BGCOLOR="#F0FFF0">
<TR>
	<TH>Upper left</TH>
	<TH>Upper right</TH>
</TR><TR>
	<TD>Lower left</TD>
	<TD>Lower right</TD>
</TR>
</TABLE>
Renders As:

Upper left Upper right
Lower left Lower right

Compatibility

HTML 4.01
Return to HTML Tag Reference Overview

Featured Clients

Ebait

Ebait is an online fishing lure and informational site, built for novice and pro fishermen alike.
Site Map   Terms of Service   Privacy Policy