<thead> ... </thead>

Defines the head of the table. The thead element is one of the “row group” elements. It may be used to duplicate headers when the full table is broken over pages or for a static header that appears with a scrolling table body. It must contain at least one row (tr). NOTE: In HTML5, the thead element may not contain td elements.

Start/End Tags

HTML 4.01: Required/Optional;
XHTML: Required/Required;
HTML5: Optional/Optional


  • HTML 4.01
  • HTML5


Values: left | right | center | justify | char
Not in HTML5. Specifies the horizontal alignment of text in a cell or cells. The default value is left. The align attribute as it applies to table cell content was not deprecated in HTML 4.01/XHTML but has been removed from HTML5 in favor of style sheet controls.


Values: character
Not in HTML5. Specifies a character along which the cell contents will be aligned when align is set to char. The default character is a decimal point (language-appropriate). This attribute is generally not supported.


Values: length
Not in HTML5. Specifies the offset distance to the first alignment character on each line. This attribute is generally not supported.


Values: top | middle | bottom | baseline
Not in HTML5. Specifies the vertical alignment of text in the cells of a column.

See table.

Rendered Example

thead organizes table rows. It may appear as a static header at top of every screen for tables that scroll.