HTML Table

HTML Table

  • The <table> tag defines an HTML table.
  • <table>…..</table> tags represents an HTML table.
  • <th>….</th> tags is used to add a column heading in a column.
  • <tr>….</tr> tags represents a row in the table
  • <td>…..</td> tags are used to add data value in the column


<table>

<tr> <th>Name </th> <th>Roll </th> <th>Result </th> </tr>
<tr> <td> jhon </td> <td> 101 </td> <td> pass </td> </tr>
<tr> <td> sham </td> <td> 102 </td> <td> pass </td> </tr>
<tr> <td> chandan </td> <td> 103 </td> <td> pass </td> </tr>

<table>

Result

Name Roll Result
jhon 101 pass
sham 102 pass
chandan 103 pass


Cristle Academy

Compiler