abbr.Turquie Turquie

balise htmltr syntaxe

Fonction?: Définissez les lignes dans les tableaux HTML.

Explication?: L'élément tr contient un ou plusieurs éléments th ou td.

Remarque?: Tous les navigateurs prennent en charge la balise <tr>

balise htmltr exemple

<html>
<body>

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

</body>
</html>

Exécuter l'instance ?

Cliquez sur le bouton ??Exécuter l'instance?? pour afficher l'instance en ligne

<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高級(jí)講師</td>
  </tr>
  <tr>
    <td>歐陽克</td>
    <td>28</td>
    <td>PHP高級(jí)講師</td>
  </tr>
</table>

</body>
</html>

Exécuter l'instance ?

Cliquez sur le bouton ??Exécuter l'instance?? pour afficher l'instance en ligne