Table tHead Attribute

Definition and Usage

tHead The attribute returns a reference to the table's <thead> element.

The <thead> element is used to group the header content of an HTML table.

Tip:The tFoot attribute returns a reference to the table's <tfoot> element.

See also:

HTML Reference Manual:HTML <thead> Tag

Example

Output the innerHTML of <thead>:

alert(document.getElementById("myTable").tHead.innerHTML);

Try It Yourself

Syntax

tableObject.tHead

Technical Details

Return Value: Reference to the <thead> element of the table; if undefined, it is null.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support