THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Table tHead Property

Table Object Reference 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

Internet Explorer Firefox Opera Google Chrome Safari

The tHead property is supported in all major browsers.


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 Reference Table Object