To use table inside of another table is called nesting of tables.
As according to the need, we might need to show different information in an appropriate ways, so we need table inside another table.
Code:
<table width=”500″ border=”0″ align=”center”>
<tr>
<td align=”center”><h1>New Academy Pvt. Ltd</h1></td>
</tr>
<tr>
<td align=”center”>
<table width=”300″ border=”1″>
<tr>
<th scope=”col”>S.No.</th>
<th scope=”col”>Name</th>
<th scope=”col”>Address</th>
<th scope=”col”>Email Id</th>
</tr>
<tr>
<td align=”center”>1</td>
<td align=”center”>Reema</td>
<td align=”center”>KTM</td>
<td align=”center”>reema@yahoo.com</td>
</tr>
<tr>
<td align=”center”>2</td>
<td align=”center”>Jayant</td>
<td align=”center”>Patan</td>
<td align=”center”>jayant@hotmail.com</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align=”center”>© 2012. All rights reserved.</td>
</tr>
</table>
Output:
As according to the need, we might need to show different information in an appropriate ways, so we need table inside another table.
Code:
<table width=”500″ border=”0″ align=”center”>
<tr>
<td align=”center”><h1>New Academy Pvt. Ltd</h1></td>
</tr>
<tr>
<td align=”center”>
<table width=”300″ border=”1″>
<tr>
<th scope=”col”>S.No.</th>
<th scope=”col”>Name</th>
<th scope=”col”>Address</th>
<th scope=”col”>Email Id</th>
</tr>
<tr>
<td align=”center”>1</td>
<td align=”center”>Reema</td>
<td align=”center”>KTM</td>
<td align=”center”>reema@yahoo.com</td>
</tr>
<tr>
<td align=”center”>2</td>
<td align=”center”>Jayant</td>
<td align=”center”>Patan</td>
<td align=”center”>jayant@hotmail.com</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align=”center”>© 2012. All rights reserved.</td>
</tr>
</table>
Output:
Comments
Post a Comment