Horje
How to create HTML Table Rows

Each table row starts with a <tr> and ends with a </tr> tag.


Example of HTML Table Rows

tr stands for table row.
 <table>
  <tr>
    <td>Emil</td>
    <td>Tobias</td>
    <td>Linus</td>
  </tr>
  <tr>
    <td>16</td>
    <td>14</td>
    <td>10</td>
  </tr>
</table> 

Full Example of HTML Table Rows

tr stands for table row.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<style>
table, th, td {
  border:1px solid black;
}
</style>
<body>

<h2>TR elements define table rows</h2>

<table style="width:100%">
  <tr>
    <td>Emil</td>
    <td>Tobias</td>
    <td>Linus</td>
  </tr>
  <tr>
    <td>16</td>
    <td>14</td>
    <td>10</td>
  </tr>
</table>

<p>To understand the example better, we have added borders to the table.</p>

</body>
</html>

Output should be:

Full Example of HTML Table Rows





Category:
Web Tutorial
Sub Category:
HTML Tables
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference