html simple table example

Example 1: tables in html

<table>
        <thead>    <!--Table Head-->
            <th>Year</th>   <!--Table Heading-->
            <th>Work</th>   <!--Table Heading-->
        </thead>
        <tbody>     <!--Table Body-->
            <tr>    <!--Table Row-->
                <td>2019-2020</td>    <!--Table Data for row1-->
                <td>self-taught Python Developer</td>    <!--Table Data for row1-->
            </tr>
            <tr>
                <td>2020-2021</td>
                <td>Learning Advanced Python</td>
            </tr>
        </tbody>
        <tfooter>
        </tfooter>
    </table>

Example 2: 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>

Tags:

Html Example