-->
Showing posts with label html with th tag. Show all posts
Showing posts with label html with th tag. Show all posts

HTML with heading tag(th)

We can also use th as heading tag n our page.
------------------------------------------------------------------------------------
<html> <!--called root tag-->
<head> <!--used for meta tag-->
<title><!-- it is for title tag-->
understanding table tag with th tag
</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>
<!--following code is used as heading-->
<!--simply we use th instead td tag-->
<th>id</th>
<th>name</th>
<th>grade</th>
</tr>
<td>001</td>
<td>Rajan</td>
<td>10</td>
</tr>
</table><!--closing-->
</body> <!--closing-->
</html> <!--closing-->