html table example
Example 1: table html
<table>
<thead>
<tr>
<th>header1</th>
<th>header2</th>
<th>header3</th>
</tr>
</thead>
<tbody>
<tr>
<td>text1.1</td>
<td>text1.2</td>
<td>text1.3</td>
</tr>
<tr>
<td>text2.1</td>
<td>text2.2</td>
<td>text2.3</td>
</tr>
<tr>
<td>text3.1</td>
<td>text3.2</td>
<td>text3.3</td>
</tr>
<tr>
</tr>
</tbody>
</table>
Example 2: html create a table
<html>
<head>
<title>Working with HTML Tables</title>
</head>
<body>
<table>
<tr>
<th>Name</th>
<th>Date of Birth</th>
<th>Weight</th>
</tr>
<tr>
<td>Mary</td>
<td>12/13/1994</td>
<td>130</td>
</tr>
</table>
</body>
</html>
Example 3: tables in html
<table>
<thead>
<th>Year</th>
<th>Work</th>
</thead>
<tbody>
<tr>
<td>2019-2020</td>
<td>self-taught Python Developer</td>
</tr>
<tr>
<td>2020-2021</td>
<td>Learning Advanced Python</td>
</tr>
</tbody>
<tfooter>
</tfooter>
</table>
Example 4: html table
<table>
<thead>
<tr>
<th>Item 1-1</th>
<th>Item 1-2</th>
<th>Item 1-3</th>
</tr>
</thead>
<tbody>
<tr>
<th>Item 2-1</th>
<th>Item 2-2</th>
<th>Item 2-3</th>
</tr>
</tbody>
</table>
Example 5: how to create a table html
<table>
<tr>
<td>First cell of the first row</td>
<td>Second cell of first row</td>
</tr>
<tr>
<td>First cell of second row</td>
<td>Second cell of second row</td>
</tr>
</table>
Example 6: html tables
<table></table>
<td></td>
<tr></tr>
<th></th>
<thead></thead><tbody></tbody><tfoot></tfoot>
<tr rowspan="2"></tr>
<tr colspan="2"></tr>