How to use rowspan and colspan in HTML5

Manideepgoud
Posted by Manideepgoud under HTML 5 category on | Points: 40 | Views : 517
In this code we will learn how to create multiple values in heading of the table using rowspan and colspan
<!DOCTYPE html>
<html>
<head>
<title>Table Heading</title>
</head>
<body>
<table border="1" style="border-collapse:collapse">
<tr>
<th rowspan="2">Google</th>
<th rowspan="2">Facebook</th>
<th rowspan="2">Whatsapp</th>
<th rowspan="2">DotNetFunda</th>
<th colspan="3">2017</th>
</tr>
<tr>
<td>ITFunda</td>
<td>KidsFunda</td>
<td>IndianConsumerComplaints</td>
</tr>
</table>
</body>
</html>

Comments or Responses

Login to post response