htmltr tag


  Translation results:

abbr.Turkey Türkiye

htmltr tagsyntax

Function: Define rows in the HTML table.

Description: tr element contains one or more th or td elements.

Note: All browsers support the <tr> tag.

htmltr tagexample

<html>
<body>

<table border="1">
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>0</td>
  </tr>
</table>

</body>
</html>

Run Instance»

Click the "Run Instance" button to view the online instance

<html>
  <meta charset="utf-8">
<body>

<table border="1">
  <tr>
    <th>姓名</th>
    <th>年龄</th>
    <th>职位</th>
  </tr>
  <tr>
    <td>西门大官人</td>
    <td>26</td>
    <td>PHP高级讲师</td>
  </tr>
  <tr>
    <td>欧阳克</td>
    <td>28</td>
    <td>PHP高级讲师</td>
  </tr>
</table>

</body>
</html>

Run instance»

Click the "Run instance" button to view the online instance

Home

Videos

Q&A