HTML5 <tr> Tag

Example

A simple HTML table, containing one row with two columns:

<table>
<tr>
<td>Cell A</td>
<td>Cell B</td>
</tr>
</table>

Try it yourself »

Definition and Usage

Defines a row in an HTML table.


Differences Between HTML 4.01 and HTML5

None of the HTML 4.01 attributes are supported in HTML5.


Attributes

Attribute Value Description
align right
left
center
justify
char
Not supported in HTML5
char character Not supported in HTML5
charoff number Not supported in HTML5
valign top
middle
bottom
baseline
Not supported in HTML5

Standard Attributes

The <tr> tag also supports the Standard Attributes in HTML5.


Event Attributes

The <tr> tag also supports the Event Attributes in HTML5.