Free HTML Class | HTML Validators
TR description:
The TR tag defines table rows in HTML tables. Every HTML table will have at least one TR tag denoting at least one row of table cells. The TR tag contains the cell tags TH and TD.
TR Web Browser Support:
- AvantGo Palm OS
- AvantGo Windows CE
- Chrome 1, 2, 3, 4, 5
- Firefox 1, 2, 3
- Internet Explorer 2, 3, 4, 5, 6, 7, 8
- Netscape 2, 3, 4, 6, 7, 8
- Opera 3, 4, 5, 6, 7, 8, 9, 10
- Safari 1, 2, 3, 4, 5
- WebTV/MSN TV
HTML Versions
TR Attributes:
Global attributes, event attributes and:
TR End Tag:
</tr> optional in HTML5 required in XHTML
Contents:
Row contents. The following tags are valid within the TR tag:
td, th
TR Valid Context:
The TR tag is valid within the following tags:
table, tbody, tfoot, thead
TR Usage:
basic table
<table border width="200">
<tr>
<td>
column 1
</td>
<td>
column 2
</td>
</tr>
</table>
TR Special Notes:
- In HTML (4 and 5) you can omit the ending tag, but tables are easier to read when they are present, and it gives you better control over style tags.
- When using nested tables, if the TR tags are not closed, the browsers may become confused as to which table elements go with which table.
More TR Information:
< Previous | HTML 4.01 Tags | XHTML 1.0 Elements | Next >
Free HTML Class | HTML Validators