HTML tables allow developers to arrange data into rows and columns.
SYNTAX:
<table>
<tbody>
<tr>
<td> </td>
<td></td>
</tr>
</tbody>
</table>
For Example:
<!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>
</body>
</html>
Output :Emil | Tobias | Linus |
16 | 14 | 10 |
0 Comments