Javatpoint Logo
Javatpoint Logo

HTML <thead> tag

HTML <thead> elements is used to define header of an HTML table. The <thead> tag is used along with <tbody> and <tfoot> tags which defines table header, table body, and table footer in an HTML table.

The <thead> tag must be child of <table> element, and it must be used before any <tbody>, <tr>, or <tfoot> elements.

The <thead> tag should contain at least one row <tr> element inside it.

Syntax

Following are some specifications about the HTML <thead> tag

Display Inline
Start tag/End tag Start and End tag
Usage Table header

Example

Test it Now

Output:

HTML thead tag

Attribute:

Tag-specific attributes:

Attribute Value Description
align right
left
center
justify
char
It determines the alignment of the content inside the <thead> element. (Not Supported in HTML5)
char Character It specifies the alignment of the content inside the <thead> element to the character. (Not Supported in HTML5)
charoff Number It specifies the number of characters the content that will be aligned from the character specified by the char attribute. (Not Supported in HTML5)
valign top
middle
bottom
baseline
It determines the vertical alignment of the content inside the <thead> element. (Not Supported in HTML5)

Global attribute:

The <thead> tag supports the Global attributes in HTML.

Event attribute:

The <thead> tag supports the Event attributes in HTML.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<thead>YesYesYesYesYes
Next TopicHTML time Tag





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA