Thursday, 21 July 2016

WRITE HTML5 CODE FOR FOLLOWING TABLE IN THE IMAGE



<html>
<head>
<title> Population of different countries </title>
</head>
<body>
<table border=4 cellspacing=5>
<tr>
   <th> Countries </th>
   <th colspan=2> Population (In Crores) </th>
</tr>
<tr>
  <th rowspan=3> India </th>
  <td> 1998</td>
  <td> 85</td>
</tr>
<tr>
  <td> 1999</td>
  <td> 90</td>
</tr>
<tr>
  <td> 2000</td>
  <td> 100</td>
</tr>
<tr>
  <th rowspan=3> USA</th>
  <td> 1998</td>
  <td> 30</td>
</tr>
<tr>
  <td> 1999</td>
  <td> 35</td>
</tr>
<tr>
  <td> 2000</td>
  <td> 40</td>
</tr>
<tr>
  <th rowspan=3> UK</th>
  <td> 1998</td>
  <td> 25</td>
</tr>
<tr>
  <td> 1999</td>
  <td> 30</td>
</tr>
<tr>
  <td> 2000</td>
  <td> 35</td>
</tr>


</body>
</html>

No comments:

Post a Comment