HTML code which generates the following output.

Lab Course 2 / Exercise 2 / Set A /

<html>
<head>
<title>Exercise 2 Set A Q2  </title>
</head>
<body>
<table border="1" cellspacing="1" cellpadding="8"
bordercolor="blue"  bordercolorlight="green" align="center">
<tr>
<th rowspan="1" align="center">Country</th>
<th rowspan="1" align="center" colspan="2">Population (in Corers)</th>
</tr>
<tr>
<th rowspan="4" align="center">INDIA   </th>
</tr>
<tr>
<th align="center">1998</th>
<th align="center">85</th>
</tr>
<tr>
<th align="center" >1999</th>
<th align="center" >90</th>
</tr>
<tr>
<th align="center">2000</th>
<th align="center" >100</th></tr>
</tr>
<tr>
<th rowspan="4" align="center">USA</th>
</tr>
<tr>
<th align="center">1998</th>
<th align="center">30</th>
</tr>
<tr>
<th align="center" >1999</th>
<th align="center" >35</th>
</tr>
<tr>
<th align="center">2000</th>
<th align="center" >40</th></tr>
</tr>
<tr>
<th rowspan="4" align="center">UK</th></tr>
<th align="center">1998</th>
<th align="center">25</th>
</tr>
<tr>
<th align="center" >1999</th>
<th align="center" >30</th>
</tr>
<tr>
<th align="center">2000</th>
<th align="center" >35</th></tr>
</tr>
</table>
</body>
</html>

Output :

Country Population (in Corers)
INDIA
1998 85
1999 90
2000 100
USA
1998 30
1999 35
2000 40
UK
1998 25
1999 30
2000 35

By Admin

Leave a Reply

Your email address will not be published. Required fields are marked *