html with colspan and rowspan tags

we can understand better about colspan and rowspan using following example.
<html> <!--called root tag-->
<head> <!--used for meta tag-->
<title><!-- it is for title tag-->
understanding table tag with rowspan and colspan
<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">
<caption align="top">student's details</caption>
<!--following code merges two columns and rows-->
<td colspan=2 rowspan=2>two</td>
</table><!--closing of table-->
</body> <!--closing of body-->
</html> <!--closing of html-->


No comments:

Post a Comment