HTML | PHP | Forum

HTML <thead> tag


<thead> - </thead>

Definition and Usage

The THEAD element defines a group of header rows in a table. A TABLE may have one THEAD, which must follow any CAPTION, COL, or COLGROUP elements, and precede the optional TFOOT and required TBODY elements.

By explicitly grouping header rows with THEAD, authors give browsers the ability to include the header rows on each page of a printed, multi-page table, as well as the ability to present a long table with a scrolling body and static header rows.

Optional Attributes

Attribute Value Description
align right
Defines the text alignment in cells
char character Specifies which character to align text on.

Note: Only used if align="char"

charoff pixels
Specifies the alignment offset to the first character to align on.

Note: Only used if align="char"

valign top
Specifies the vertical text alignment in cells

Standard Attributes

id, class, title, style, dir, lang, xml:lang

For a full description, go to Standard Attributes.

Event Attributes

onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup

For a full description, go to Event Attributes.


Source Output
<table border = "4">
This is the head
This is the foot
<td>Cell 1</td>
<td>Cell 2</td>
This is the head This is the foot
Cell 1 Cell 2


Learn HTML
HTML Tutorial

HTML Reference
HTML by function
HTML by Alphabet

HTML events
HTML attributes
HTML color names

<h1> to <h6>


Copyright 2005-8 Sunilcare.  All Rights Reserved.
Comments or suggestions? Contact us.About us