HTML: The Markup Language Reference

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 #


DOM interface #

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

Typical default display properties #

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