< table > in HTML (Source code)

A Simple Table example in HTML

 

Each table row is defined with a <tr> tag


table header is defined with a <th> tag


 the text in <td> elements are regular and left-aligned


 

The <table> tag defines an HTML table

 

 <table style="width:100%">

  <tr>

    <th>First Name</th>

    <th>Last Name</th>

    <th>Age</th>

  </tr>

  <tr>

    <td>Tech</td>

    <td>Forum</td>

    <td>1</td>

  </tr>

  <tr>

    <td>Arya</td>

    <td>Jhon</td>

    <td>59</td>

  </tr>

</table>

Comments

Last 7 Days

How to use sandbox attribute value ( allow-popups ) with < iframe > tag in HTML ? with example

How do you add color to a < table > in HTML?

table background-color css

How to Create a table in html with 2 rows and 3 columns (Source code )

All 35 reserved keywords in Solidity programming language