HTML and CSS Reference
In-Depth Information
Name
tr
Synopsis
<tr> . . . </tr>
Defines a row of cells within a table. A tr element may contain only some number of td and/
or th elements. It may be used only within a table , thead , tfoot , or tbody element.
Usage
Categories:
None
Permitted contexts:
As the child of a thead , tbody , or tfoot element. As the child of a table element, after
any caption , colgroup , and thead elements, but only if there are no tbody elements.
Permitted content:
Zero or more tr or th elements
Start/end tags:
HTML: Required/Optional (if followed by another tr or the end of the parent element);
XHTML: Required/Required
Attributes
HTML5 Global Attributes
Example
<table>
<tr>
<td>cell 1</td><td>cell 2</td>
Search WWH ::




Custom Search