< 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 referrerpolicy Attribute value ( no-referrer-when-downgrade ) with < iframe > tag in HTML ? with example

Syntax of writing a different font style in HTML

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

What is < table > tag in HTML?

How to use the datalist tag in HTML?

css for code blocks