Here is the implementation of the logic.
<html><head>
<title>Table</title></head>
<body>
<p align="center">Table will be centered aligned</p>
<div align="center">
<table width="200" border="1" title="Table">
<tr>
<th>Column A </th>
<th>Column B </th>
</tr>
<tr>
<td><div align="center">data1</div></td>
<td><div align="center">data2</div></td>
</tr>
<tr>
<td><div align="center">data3</div></td>
<td><div align="center">data4</div></td>
</tr>
<tr>
<td><div align="center">data5</div></td>
<td><div align="center">data6</div></td>
</tr>
</table>
</div>
</body>
</html >
Post any problem if encountered in the comments.Thanks for visiting GIMIBITS.
Please share this post and like us on Facebook.
HITESH BHATIA
EDITOR IN CHIEF
Comments
Post a Comment