XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / tr
(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
tr
HTML 4.01 | HTML 5 |
<tr> ... </tr>
Marks a table row containing cells. A tr element may contain only td and/or th elements. It can only be used inside the elements table, thead, tfoot or tbody. Settings for tr are inherited by all cells in the row. The attributes below should no longer be used; stylesheet definitions should be used instead.
Start/end tag
HTML: required/optional; XHTML: required/required
Attributes
Core, internationalization, events, global HTML 5 attributes
align="left|right|center|justify|char"Not available in HTML 5. Sets the horizontal alignment of the contained cells. The default is
left.bgcolor="#rrggbb" oder "Farbname"Deprecated. Not in HTML 5. Defines a background color for the row. A background color specified for a column takes precedence over the background color of the entire table.
char="Zeichen"Not available in HTML 5. Defines a character on which the cell content should align when
alignhas the valuechar. The default is a decimal separator, depending on the language. This attribute is rarely supported.charoff="Länge"Not available in HTML 5. Defines the offset to the first alignment character in a row. If the row has no alignment character, it should be shifted horizontally to the alignment position. Current browsers rarely support this attribute.
valign="top|middle|bottom|baseline"Not available in HTML 5. Defines vertical alignment for the cells in the current row.
Example
<table>
<tr>
<td>Zelle 1</td><td>Zelle 2</td>
</tr>
<tr>
<td>Zelle 3</td><td>Zelle 4</td>
</tr>
</table>
|
Copyright © 2010 O’Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from "HTML & XHTML ─ kurz & gut" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de