HTML tr tag - Coding Tag
×

HTML tr <tr> tag

1802

HTML tr <tr> tag is used to define the rows (table row) in the table. The <tr> tag can consist one or more <th>, <td> cells to define a single row of HTML table.

The <tr> tag must be a direct child of <table> element or it can be nested child of <thead>, and <tfoot>tag.

Syntax:

<tr> .... ... </tr>

Program:

<!DOCTYPE html>
<html>
<head>
<title>HTML tr tag</title>
</head>
<body>
<h2>Example of TR Tag</h2>
<table>
 <tr>
  <th>Month</th>
  <th>Savings</th>
 </tr>
 <tr>
  <td>January</td>
  <td>$500</td>
  </tr>
</table>
</body>
</html>

Output:

HTML tr tag



Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments