<tr>—Creating Table Rows

You use <tr> to create rows in a table. This element can contain <th> (table header) and <td> (table data) elements. It is supported in XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML 1.0 Frameset, and XHTML 1.1. Here are this element's attributes:

  • align— Specifies the horizontal alignment of the text in this table row. You can set this to left, center, right, justify, or char. Unlike other align attributes, this one is not deprecated. (XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML 1.0 Frameset, XHTML 1.1.)

  • bgcolor— Deprecated in HTML 4.0. Specifies the background color of the table cells. (XHTML 1.0 Transitional, XHTML 1.0 Frameset.)

  • char— Specifies a character to align text on. (XHTML 1.0 Strict, XHTML 1.0 Transitional, ...

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.