HTML5 <tr> Tag

Example

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

<table>
<tr>
<td>Data 1</td>
<td>Data 2</td>
</tr>
</table>
Code it Online »

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.


Have Any Suggestion? We Are Waiting To Hear from YOU!

Your Query was successfully sent!