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, orright.-
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
nadjacent 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
nadjacent rows.-
scope=scope Define the scope of this header cell:
row,col,rowgroup, orcolgroup.-
valign=type Vertically align this cell’s contents to the
top,middle,bottom, orbaselineof the cell.-
width=n Set the width of this cell to
npixels or a percentage of the table width.
See Chapter 5 for more information on tables.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access