Back to Content

HTMLTableElement: tHead property

files/en-us/web/api/htmltableelement/thead/index.md

latest477 B
Original Source

{{APIRef("HTML DOM")}}

The HTMLTableElement.tHead represents the {{HTMLElement("thead")}} element of a {{HTMLElement("table")}}. Its value will be null if there is no such element.

Value

A {{domxref("HTMLTableSectionElement")}}.

Examples

js
if (table.tHead === myHeadEl) {
  // …
}

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • The interface implementing this property: {{domxref("HTMLTableElement")}}.