jump

HTML 5: The Markup Language (ARIA Edition)

theadtable heading group # T

The thead element represents the block of rows that consist of the column labels (headings) for its parent table element.

Permitted contents #

zero or more tr elements

Permitted attributes #

global attributes
Any attributes permitted globally.

Additional constraints and admonitions #

Tag omission #

A thead element must have a start tag.

A thead element’s end tag may be omitted if the thead element is immediately followed by a tbody or tfoot element.

Permitted parent elements #

table

DOM interface #

interface HTMLTableSectionElement : HTMLElement {
  readonly attribute HTMLCollection rows;
  HTMLElement insertRow(optional long index);
  void deleteRow(long index);
};

Typical default display properties #

thead {
display: table-header-group;
vertical-align: middle;
border-color: inherit; }