Name

<tr> — NN: 2, 3, 4 &bull; MSIE: 2, 3, 4, 5 &bull; HTML 4 &bull; WebTV &bull; Opera3

Synopsis

<tr>...</tr>

Used within a <table>, defines a row of cells within a table. A table row as delimited by <tr> tags contains no content other than a collection of table cells (<td>). The end tag is optional.

Attributes

align=left|center|right

Aligns the text (or other elements) within the cells of the current row. This attribute has been deprecated by the W3C HTML 4.0 Spec in favor of positioning with style sheets.

bgcolor=#rrggbb or color name

Specifies a color to be used in the row. A row’s background color overrides the color specified at the table level.

valign=top|middle|bottom|baseline

Specifies the vertical alignment of the text (or other elements) within cells of the current row.

Internet Explorer 2.0 and higher only

background=url

Specifies the URL of a graphic to be used as a tile within the row.

bordercolor=#rrggbb or color name

Defines the border color for the row.

bordercolorlight=#rrggbb or color name

Defines the dark shadow color for the row border.

bordercolordark=#rrggbb or color name

Defines the light highlight color of the row border.

Get HTML Pocket Reference 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.