Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Accessibility          Design

<thead>

<thead
align=left|center|right|justify
char=char
charoff=n
class=type
id=value
dir=ltr|rtr
lang=language
style=style
title=text
valign= middle|top|bottom|baseline
</thead>

Defines the table heading. Use <thead> to duplicate headings when breaking tables across page boundaries, or for static headings when body sections are rendered in a scrolling panel.

The <thead> tag does not directly affect the appearance of the table but you need it if you want to use internal table borders (rules) in the table.

The table heading is optional; and only one heading is allowed. The <thead> tag is valid only within a table; you must use a table tag before you use this tag. The end-tag is optional.

Attributes

align=center|left|right|justify

Specifies the alignment of text in the heading. The default is center.

Value…

Description…

center

The text in the heading is aligned in the centre of the page

left

The text in the heading is aligned with the left margin

right

The text in the heading is aligned with the right margin

justify

The text in the heading is justified

char=char

A single character for the alignment of text in the column. The default value is the decimal point of the current language

charoff=n

Specifies the offset to the first occurrence of the alignment character. The attribute's value is a number in pixels or a percentage of the cell's width

class=type

Indicates the class to which the tag belongs. You can use the class attribute in a style sheet to create different styles that you want apply to a single HTML tag. For example, you might create three different styles for a <thead> tag. See Using the class attribute as a selector for more details.

dir=ltr|rtr

Specifies the direction of text. This can be left-to-right (ltr) or right-to-left (rtl). For example, English characters are presented left-to-right, Hebrew characters are presented right-to-left.

id=value

Specifies a unique name for the tag. No two tags can have the same id on a single page. The value must begin with a letter followed by any alphanumeric character, a hyphen, an underscore, a colon or a full stop. You use it to reference a unique style for a tag or to manipulate the tag with a script.

lang=language

Specifies which language the <thead> tag uses. You can enter any valid ISO standard language abbreviation, for example, “en” for English, “de” for German and so on. For example, <span lang="es">hola! como esta?</span>.

This attribute helps search engines understand different languages as different languages rather than just misspelled English. It may also help spelling and grammar checkers and allow speech synthesizers to use language-dependent pronunciation rules.

style=style

Specifies style information. See Style sheets for more information.

title=text

For information only. Some browsers display the title when you move the mouse over the tag (like a tool tip).

valign=middle|top|bottom|baseline

Specifies the vertical alignment of text in the heading. The default is middle.

Value…

Description…

middle

Text is aligned in the middle of the heading

top

Text is aligned with the top of the heading

bottom

Text is aligned with the bottom the heading

baseline

Text in adjoining cells in a row is aligned along a common baseline