Hurry! Try our new Interactive Courses for FREE. 🥳   🚀
  Signup/Sign In

HTML TR Tag

In HTML, the <tr> tag stands for table row.

  • The <tr> tag is used to define a row of cells in a table.

  • The row's cells can then be established using a mix of <td> tag (standard data cell) and <th> (header cell) elements.

  • The <tr> tag contains more than one <th> tags as well as <td> tag.

HTML<tr> Tag Syntax and Usage

The <tr> tag requires the start(opening) tag and end(closing) tag.

Following is the syntax for using the tr tag in your HTML code:

<table>
<tr>
<th>
content here
</th>
</tr>
</table>

HTML <tr> Tag Basic Example

Below we have a basic example showing how we use the HTML <tr> tag.

HTML <tr> Tag Attributes

This tag does not have specific attributes; though it supports global and event attributes.

Default CSS Settings for HTML <tr> Tag

Given below are the default CSS settings used by most of the browsers:

tr {
  display: table-row;
  vertical-align: inherit;
  border-color: inherit;
}

Browser Support for HTML <tr> Tag

Following browsers support this attribute:

  • Google Chrome 6.0+

  • Internet Explorer 9.0+

  • Firefox 4+

  • Opera 11.1+

  • Safari 5.0+