Write HTML5 code for table country population

Q. Write the HTML5 code which generates the following output
COUNTRY POPULATION
COUNTRY POPULATION (IN CRORES)
india 1998 85
1999 90
2000 100
USA 1998 30
1999 35
2000 40
UK 1998 25
1999 30
2000 35



HTML Code:

<HTML>
<HAED>
<title> COUNTRY POPULATION</title>
</HAED>
<table border="2" align="center">
<tr>
<th>COUNTRY</th>
<th colspan="2">POPULATION (IN CRORES)</th>
<tr>
<td rowspan="3" aling="center">india</td>
<td>1998</td>
<td>85</td>
</tr>
<td>1999</td>
<td>90</td>
<tr>
<td>2000</td>
<td>100</td>
</tr>
<tr>
<td rowspan="3" aling="center">USA</td>
<td>1998</td>
<td>30</td>
</tr>
<tr>
<td>1999</td>
<td>35</td>
</tr>
<tr>
<td>2000</td>
<td>40</td>
</tr>
<tr>
<td rowspan="3" aling="center">UK</td>
<td>1998</td>
<td>25</td>
</tr>
<tr>
<td>1999</td>
<td>30</td>
</tr>
<tr>
<td>2000</td>
<td>35</td>
</tr>
</html>


Output:
COUNTRY POPULATION
COUNTRY POPULATION (IN CRORES)
india 1998 85
1999 90
2000 100
USA 1998 30
1999 35
2000 40
UK 1998 25
1999 30
2000 35


Post a Comment

0 Comments