Draw a row or column heading in a table.
<TH
ALIGN=CENTER | LEFT | RIGHT
BACKGROUND=url
BGCOLOR=color
BORDERCOLOR=color
BORDERCOLORDARK=color
BORDERCOLORLIGHT=color
CLASS=classname
COLSPAN=n
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
NOWRAP
ROWSPAN=n
STYLE=css1-properties
TITLE=text
VALIGN=BASELINE | BOTTOM | MIDDLE | TOP
event = script
>
Parameter |
Description |
ALIGN |
This attribute controls whether text inside the table header is aligned to the left, right or centred within the cell. |
BACKGROUND |
Specifies a background picture for the table. The picture is tiled behind the text and graphics in the table, table head, or table cell. |
BGCOLOR |
Sets the background color behind the element. |
BORDERCOLOR |
Sets border color and must be used with the BORDER attribute, except for frames. |
BORDERCOLORDARK |
Sets independently, the darker colour to be displayed on a 3-dimensional header cell border. It is the opposite of BORDERCOLORLIGHT. Any of the pre-defined colour names can be used, as well as any colour defined by a rrggbb hex triplet. |
BORDERCOLORLIGHT |
Sets independently, the lighter colour to be displayed on a 3-dimensional header cell border. It is the opposite of BORDERCOLORDARK. Any of the pre-defined colour names can be used, as well as any colour defined by a rrggbb hex triplet. |
CLASS |
Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag. |
COLSPAN |
Specifies how many columns in the TABLE this cell should span. |
ID |
An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position. |
LANG |
Species what language the <TH> element is using. |
LANGUAGE |
Specifies the language the current script is written in and invokes the
proper scripting engine. The default value is JAVASCRIPT. |
NOWRAP |
The NOWRAP attribute is used when you do not want the browser to automatically perform word wrap. |
ROWSPAN |
Specifies how many rows in a TABLE this cell should span. |
STYLE |
Specifies an in-line style sheet for the tag. |
TITLE |
Used to provide advisory information. The contents of the title attribute will be displayed in a ToolTip during the onmouseover event. |
VALIGN |
BOTTOM | CENTER | TOP--Displays the elements aligned at the top or bottom
within the element. |
event |
Can be one or more of these events: |
<TH> ... </TH>
This element is a block element. Both the start and end tags are required.