HTML

tr Tag is HTML

Example

A simple HTML table with three rows; one header row and two data rows:

<table>
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
  </tr>
  <tr>
    <td>February</td>
    <td>$80</td>
  </tr>
</table>

Definition and Usage

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

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

Global Attributes

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


Event Attributes

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

Related Articles