W3Schools.com

HTML5 <tr> Tag

Example

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

<table border="1">
  <tr>
    <td>Cell A</td>
    <td>Cell B</td>
  </tr>
</table>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The <tr> tag is supported in all major browsers.


Definition and Usage

The <tr> tag defines a row in an HTML table.

A <tr> element contains one or more <th> or <td> elements.


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

Global Attributes

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


Event Attributes

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


WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE