<th>—Creating Table Headings

You use the <th> element to create table headings, which are usually displayed in bold text, and label the columns in a table. This element is supported in XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML 1.0 Frameset, and XHTML 1.1. Here are its attributes:

  • abbr— Holds an abbreviated name for a header. (XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML 1.0 Frameset, XHTML 1.1.)

  • align— Sets the horizontal alignment of content in table cells. Possible values are left, center, right, justify, and char. (XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML 1.0 Frameset, XHTML 1.1.)

  • axis— Contains a name for a cell (usually used only with table heading cells). Allows the table to be mapped to a tree hierarchy. (XHTML 1.0 Strict, ...

Get Real World XML 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.