Name
<tr> — NN: 2, 3, 4 • MSIE: 2, 3, 4, 5 • HTML 4 • WebTV • 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|rightAligns 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=#rrggbborcolor nameSpecifies 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|baselineSpecifies the vertical alignment of the text (or other elements) within cells of the current row.
Internet Explorer 2.0 and higher only
background=urlSpecifies the URL of a graphic to be used as a tile within the row.
bordercolor=#rrggbborcolor nameDefines the border color for the row.
bordercolorlight=#rrggbborcolor nameDefines the dark shadow color for the row border.
bordercolordark=#rrggbborcolor nameDefines the light highlight color of the row border.
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