HTML <thead> Tag


The <thead> HTML element is intended to store one or more rows that are presented at the top of the table. It is permissible to use no more than one <thead> element within the same table, and it must go in the source code immediately after the opening <table> or <caption> tag (if any).


Permitted Parents
A <table> element. The <thead> must appear after any <caption> or <colgroup> element, even implicitly defined, but before any <tbody>, <tfoot> and <tr> element
Start/End Tags
Start tag: required, End tag: required


<table border = "1">
<tr><td colspan="2">Table Header (thead)</td></tr>
<tr><td colspan="2">Table Footer (tfoot)</td></tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
<td>Cell 5</td>
<td>Cell 6</td>


Attribute Definition
align Visual alignment.
Possible values:
  • left
  • center
  • right
  • justify
  • char
valign Vertical alignment.
Possible values:
  • top
  • middle
  • bottom
  • baseline
char Specifies a character to use for aligning text to. Used when align=char.
charoff Specifies an alignment offset (either in pixels or percentage value) against the first character as specified with the char attribute. Used when align=char

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 table will show you the current browser support for the HTML <thead> tag.

Edge Chrome Firefox Opera Safari
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview

Last updated by CSSPortal on: 30th September 2023