-->
Showing posts with label centered data. Show all posts
Showing posts with label centered data. Show all posts

HTML page with headings and centered data

Following example can be taken to understand this.
----------------------------------------------------------------------------------------
<html> <!--called root tag-->
<head> <!--used for meta tag-->
<title><!-- it is for title tag-->
understanding table tag with centered data
</title>
</head>
<body><!-- is container-->
<!--following tag is used as heading-->
<h1>we are going to creat table</h1>
<!-- we are going to create table-->
<table border="1" width="100%" bordercolor="green">
<tr>
<th>id</th>
<th>name</th>
<th>grade</th>
</tr>
<!--following code is used with center align-->
<!--we can also use right/left/justify-->
<td align="center">001</td>
<td align="center">Rajan</td>
<td align="center">10</td>
</tr>
</table>
</body>
</html>