Skip to content
Related Articles

Related Articles

Improve Article
HTML tr Tag
  • Last Updated : 17 Sep, 2019

The <tr> tag is used to define a row in an HTML table. The <tr> element contains multiple <th> or <td> elements.




  • align: Align the content.
  • bgcolor: Specify background of row
  • char: Align the content to a character
  • charoff: Set the number of character
  • valign: Vertical align the content


<!DOCTYPE html>
    <title>tr tag</title>
        body {
            text-align: center;
        h1 {
            color: green;
        th {
            color: blue;
        td {
            border: 1px solid black;
            border-collapse: collapse;
        <h2>tr Tag</h2>
                <!-- tr tag starts here -->
                    <th>User Id</th>
                <!-- tr tag end here -->


Supported Browsers: The browsers supported by HTML <tr> Tag are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Apple Safari
  • Opera

My Personal Notes arrow_drop_up
Recommended Articles
Page :