Home Html Table
Table
How to Insert Table in Html

You can insert table in your html page by using <table> tag. You have to use <td> which content data of the cell data can be the image, text, list etc tag (table data) and <tr> tag (table row) along with the table tag. You can also define heading in the table by using <th> tag that is table heading. Aborder is the attribute of the table tag to put the border to the table.

Use following is the code to insert table with table heading:

<table border="1">
<tr>
<th>Heading1</th>
<th> Heading2</th>
</tr>
<tr>
<td>first row, first cell</td>
<td>first row, second cell</td>
</tr>
<tr>
<td>second row, first cell</td>
<td>second row, second cell</td>
</tr>
</table>

This will be the result:

Heading1 Heading2
first row, first cell first row, second cell
second row, first cell second row, second cell