Table row or tr tag

The <tr> tag defines a row in an HTML table.
A <tr> element contains one or more <th> or <td> elements.

<!DOCTYPE html>
<html>
<head>


</head>
<body>

<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>

</body>
</html>

Output:

MonthSavings
January$100
February$80

Comments

Popular posts from this blog

Headings In HTML

Introduction and Format of HTML

Font Tag