HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

th

Description

The th element for HTML represents a header cell in a table.

Syntax

HTML

<th attribute-name="attribute-value"></th>

Attributes

Global

NameValueDescription
abbrstringAlternative label to use for the header cell when referencing the cell in other contexts.
colspanpositive integerNumber of columns that the cell is to span
headersIDREFSThe headers for this cell
rowspannon-negative integerNumber of rows that the cell is to span
scopeauto | row | col | rowgroup | colgroupSpecifies what set of cells the th element applies to

CSS

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

Examples

1 · abbr

2 · colspan

3 · headers

4 · rowspan

5 · scope

6 · CSS