Name

thead — A table header consisting of one or more rows in an HTML table

Synopsis

thead (db.html.thead) ::= tr+

Attribute synopsis

Attributes:

  • align (enumeration) = “left” | “center” | “right” | “justify” | “char”

  • char

  • charoff (enumeration) = xsd:integer | xsd:string (Pattern: “[0–9]+%”)

  • valign (enumeration) = “top” | “middle” | “bottom” | “baseline”

Description

The thead wrapper identifies the rows of a table that form the head of the table, as distinct from the body (tbody) and foot (tfoot) rows.

Header rows are always rendered at the beginning of the table.

Processing expectations

This element is expected to obey the semantics described in Tables, as specified in XHTML 1.0 [XHTML]. Header rows are often presented in an alternate typographic style, such as boldface.

In paged media, if a table spans across multiple pages, header rows are printed at the top of each new page.

Attributes

align

Specifies the alignment of data and the justification of text in a cell.

Enumerated values:
“left”

Left-flush data/Left-justify text. This is the default value for table data.

“center”

Center data/Center-justify text. This is the default value for table headers.

“right”

Right-flush data/Right-justify text.

“justify”

Double-justify text.

“char”

Align text around a specific character. If a user agent doesn’t support character alignment, behavior in the presence of this value is unspecified.

char

Specifies a single character within a text fragment to act as an axis for alignment. The default value for this attribute is the ...

Get DocBook 5: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.