Name

<th>

Synopsis

<th> ... </th>

Define a table header cell.

Attributes

abbr =string

Specify an abbreviation for the cell’s contents.

align =type

Align the cell contents to the left, center, or right.

axis =string

Provide a name for a related group of cells.

background =url

Specify an image to be tiled in the background of the cell.

bgcolor =color

Define the background color for the cell.

bordercolor =color

Define the border color for the cell.

bordercolordark =color

Define the dark border-highlighting color for the cell.

bordercolorlight =color

Define the light border-highlighting color for the cell.

char =char

Specify the cell alignment character.

charoff =value

Specify the offset of the alignment position within the cell.

colspan =n

Have this cell straddle n adjacent columns.

headers =list

Provide a list of header cell names associated with this cell.

height =n

Define the height, in pixels, for this cell.

nowrap

Do not automatically wrap and fill text in this cell.

rowspan =n

Have this cell straddle n adjacent rows.

scope =scope

Define the scope of this header cell: row, col, rowgroup, or colgroup.

valign =type

Vertically align this cell’s contents to the top, middle, bottom, or baseline of the cell.

width =n

Set the width of this cell to n pixels or a percentage of the table width.

See Chapter 5 for more information on tables.

Get Webmaster in a Nutshell, Third Edition 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.