<TH...>
ALIGN
="left|right|center"
BACKGROUND
="URL"
BGCOLOR
="#rrggbb|Colour Name"
BORDERCOLOR
="#rrggbb|Colour Name"
BORDERCOLORDARK
="#rrggbb|Colour Name"
BORDERCOLORLIGHT
="#rrggbb|Colour Name"
CLASS
="Style Sheet Class"
COLSPAN
="Number of columns to span"
HEIGHT
="Pixels|Percentage"
ID
="Unique Identifier"
LANG
="Language descriptor"
LANGUAGE
="Scripting Language descriptor"
NOWRAP
="Flag"
ROWSPAN
="Number of rows to span"
STYLE
="Style Sheet Setting"
TITLE
="Title of element"
VALIGN
="top|middle|bottom|baseline"
WIDTH
="Pixels|Percentage"
onClick
="Script Function"
onDblClick
="Script Function"
onDragStart
="Script Function"
onFilterChange
="Script Function"
onHelp
="Script Function"
onKeyDown
="Script Function"
onKeyPress
="Script Function"
onKeyUp
="Script Function"
onMouseDown
="Script Function"
onMouseMove
="Script Function"
onMouseOut
="Script Function"
onMouseOver
="Script Function"
onMouseUp
="Script Function"
onSelectStart
="Script Function"
>
...
</TH>
De-limits the enclosed content as being a single header data cell in a <TABLE>
.
Attribute | Description |
ALIGN |
Specifies the alignment of the table header cell. |
BACKGROUND |
Provides a URL reference for an image to be used as the background for the table header. |
BGCOLOR |
Specifies a colour for the background of the table header cell. |
BORDERCOLOR |
Specifies the colour of the border for the table header cell (requires the BORDER attribute for the <TABLE> to be non-zero) |
BORDERCOLORDARK |
Specifies the darker colour of the 3-D table header cell. |
BORDERCOLORLIGHT |
Specifies the darker colour of the 3-D table header cell. |
CLASS |
Sets the style sheet class (specified in an in-line, linked or imported style sheet) to be applied to the element. |
COLSPAN |
Specifies the number of columns that the current table header cell should occupy, to allow it to span across columns above or below it. |
HEIGHT |
Specifies the height of the table header cell in either pixels, or a percentage of the whole table. Setting the height of one table header cell will set the height of the whole row. |
ID |
Sets a unique identifier for the element, allowing it to be referenced within scripting functions, or to specify a style sheet setting, set using a #<style_class> class selector. |
LANG |
Specifies the language (using an ISO country code derived classifier) that the element is using, for browsers that support document localisation. |
LANGUAGE |
Sets the scripting language that any in-line scripting events are written in. |
NOWRAP |
Specifies that the contents of the table header cell will not be wrapped. Note that this may force header cells to be wider than their width setting. |
ROWSPAN |
Specifies the number of rows that the current table header cell should occupy, to allow it to span across rows to the left or right of it. |
STYLE |
Sets in-line style sheet settings for the element, which will over-ride any set in a <STYLE> block, or externally linked to the document. |
TITLE |
Specifies an informational title for the element. The contents of the TITLE attribute may be presented as a Tool-Tip by some browsers. |
VALIGN |
Specifies the vertical alignment of the table header cell. |
WIDTH |
Specifies the width of the table header cell in either pixels, or a percentage of the table. |
Event | Description |
onClick |
Fired whenever the user clicks the element (or its contents) with the mouse |
onDblClick |
Fired whenever the user double-clicks the element (or its contents) with the mouse (the double-click speed is dependant on the users system settings). |
onDragStart |
Fired when the users initiaties dragging of the element (or it's contents) |
onFilterChange |
Fired whenever a filter is applied to an element, or whenever the properties of an applied filter are changed. |
onHelp |
Fired whenever the user presses 'F1' (for help) and the element has the users current focus. |
onKeyDown |
Fired when the user presses a key (only when the key is actually pressed) when the element has the focus. |
onKeyPress |
The onkeypress event is similar to the onkeydown event, except that it returns the UNICODE value of the key or keys being pressed when the event occurs. |
onKeyUp |
The onkeyup event is fired when a previously pressed key is released while the referenced element has the focus. |
onMouseDown |
The onmousedown event fires whenever the user presses a button on the mouse, with the event being initially fired for the element that has the focus when the mouse button is clicked, and bubbling up through the element objects until an onmousedown event handler is found. |
onMouseMove |
The onmousemove event occurs whenever the users mouse moves over the element. |
onMouseOut |
The onmouseout event fires when the users mouse leaves the area defined by the referenced element. |
onMouseOver |
The onmouseover event fires when the users mouse enters the area defined by the referenced element. |
onMouseUp |
The onmouseup event fires after a users mouse button has been pressed and released. |
onSelectStart |
The onselectstart event is fired whenever the users starts to select some text that is the contents of the referenced element. |
See 'HTML Reference|Tables|<TH>' for more information.