Language References
Denotes a table header cell.
HTML Syntax
<th
align = center | left | right
background = url
bgcolor = color
bordercolor = color
bordercolordark = color
bordercolorlight = color
class = classname
colspan = n
id = value
nowrap
rowspan = n
style = css properties
title = text
valign = baseline | bottom | center | middle | top
event = script
>
The TH element specifies a table cell whose contents are used for column or row headings. TH elements can only be used inside table rows, or within a TR element.
Browsers usually display the content of TH elements centered within the cell, and in a bolder font than those of regular table cells.
Although the W3C specifies that TH end tags are optional and may be omitted, it is safer to always close table headers, as not all browsers support this recommendation, and may produce unexpected results.
TH Members
TABLE, TD, TR, Using Tables