th

The th element represents a header cell in a table.

Attributes

<th attribute-name="attribute-value"></th>
Name Value Description
colspan positive integer Specifies the number of adjacent columns "spanned" by its td element
headers IDREFS Identifies one or more th elements that apply to its td
rowspan non-negative integer Specifies the number of following rows "spanned" by its td element
scope row | col | rowgroup | colgroup Specifies what set of cells the th element applies to

Global

CSS

th {
  display: table-cell;
  font-weight: bold;
  text-align: center;
  vertical-align: inherit;
}

Example | colspan

Example | headers

Example | rowspan

Example | scope

Example | CSS

External

W3C HTML 4.01 Specification

W3C HTML5

W3C HTML 5.1