How to create an AllSpan table(Rowspan+Colspan).

 

To create a rowspan+colspan table, we would be required to use these HTML codes.

<!DOCTYPE html>

<html>
<head>
<style>
body{
background-color: whitesmoke;
font-family: comic sans ms;

}
</style>
</head>
<body>
<table border=”4″ width=”80%” height=”500″>
<tr><td align=”center”>This</td><td align=”center”>is</td><td align=”center”>Atharv</td><td align=”center”>Pandey</td>
<tr><td align=”center” rowspan=”2″ colspan=”2″>Learning Advance Programming</td><td align=”center” colspan=”2″>By Champak Sir</td></tr>
<tr><td align=”center”>+91</td><td align=”center” rowspan=”2″>9335874326</td></tr>
<tr><td align=”center”>Mail-Id</td><td align=”center” colspan=”2″>champak5501@yahoo.com</td></tr>
</table>
</body>
</html>

Output:

 

Leave a Reply