HTML: The Markup Language

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 content #

zero or more tr elements

Permitted attributes #

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; }