HTML DOM Table tHead Property
THE WORLD'S LARGEST WEB DEVELOPER SITE

Table tHead Property

❮ Table Object

Example

Alert the innerHTML of <thead>:

alert(document.getElementById("myTable").tHead.innerHTML);
Try it Yourself »

Definition and Usage

The tHead property returns a reference to the <thead> element of a table.

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

Tip: The tFoot property returns a reference to the <tfoot> element of a table.


Browser Support

Property
tHead Yes Yes Yes Yes Yes

Syntax

tableObject.tHead

Technical Details

Return Value: A reference to the <thead> element of the table, or null if it is not defined

Related Pages

HTML reference: HTML <thead> tag


❮ Table Object