top of page

Table 

Table is defined by <table> and </table> tag 

Table Cells

Each table cell is defined by a <td> and  </td> tag.

td stands for table data.

Everything between <td> and </td> are the content of the table cell.

Example:

<table>
 <tr>
    <td>html</td>
   <td>css</td>
   <td>js</td>
 </tr>
</table>

Table Rows

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

tr stands for table row.

<table>
<tr>
    <td>html</td>
   <td>css</td>
   <td>js</td>
</tr>
<tr>
    <td>2500</td>
   <td>2600</td>
   <td>3000</td>
</tr>
</table>

Table Headers

Table header is defined by <th>and </th> tag 

<table>
 <tr>
    <th>Person 1</th>
   <th>Person 2</th>
   <th>Person 3</th>
 </tr>
 <tr>
    <td>Emil</td>
   <td>Tobias</td>
   <td>Linus</td>
 </tr>
 <tr>
    <td>16</td>
   <td>14</td>
   <td>10</td>
 </tr>
</table>

bottom of page