HTML <thead> Tag
Description
The <thead> element in HTML is used to group the header content of a table. It typically contains rows of column headings that describe the data contained in the corresponding columns of the table. By separating the header from the body (<tbody>) and footer (<tfoot>), <thead> makes tables more organized, readable, and semantically meaningful.
Structurally, <thead> is placed immediately after the opening <table> tag and before the <tbody> element. It usually contains one or more <tr> (table row) elements, and within each row, <th> (table header) elements are used to define individual column headers. Unlike regular table cells (<td>), header cells inside <thead> are typically displayed in bold and centered by default, emphasizing their role as descriptive labels for the table’s data.
Using <thead> also has practical benefits for styling and scripting. For example, CSS can target <thead> separately to apply distinct styles, such as a background color or font styling, making headers stand out. Additionally, in long tables that span multiple pages when printed, browsers can repeat the <thead> on each page to maintain context. In dynamic tables, JavaScript can leverage <thead> to identify headers for sorting or filtering functions.
Properties
Example
Attributes
Global Attributes
The <thead> tag also supports the Global Attributes in HTML5
Event Attributes
The <thead> tag also supports the Event Attributes in HTML5
Browser Support
The following information will show you the current browser support for the HTML <thead> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.
This tag is supported by all modern browsers.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 26th December 2025
