<td>—Creating Table Data

The <td> element is where you place the data that you want in a cell in a table. You use this element inside the <tr> element. It's supported in XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML 1.0 Frameset, and XHTML 1.1. Here are this element's attributes:

  • abbr— Gives an abbreviated name for a cell. (XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML 1.0 Frameset, XHTML 1.1, 4.)

  • align— Sets the horizontal alignment of content in the table cell. You can set this to left, center, right, justify, or 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.