5. Write the HTML code which generates the following output.

 

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



Program :

 

 <html>

    <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 Screen










No comments:

Post a Comment