English

Write a html code to produce following output: Years 2011 2012 2013 2014 Students Boys 30 45 55 75 Girls 20 35 75 95 Total 50 80 130 170 - Computer Science 1

Advertisements
Advertisements

Question

Write a html code to produce following output:

Years Students
Boys Girls Total
2011 30 20 50
2012 45 35 80
2013 55 75 130
2014 75 95 170
Code Writing
Advertisements

Solution

<html>
<body>
<table border="l" width="30%"> 
<caption align=('bottom">Record</ caption>
<tr>
    <td align="center" rowspan="2"> Years</ td>
    <td align="center" colspan="3">Students</td>
</tr>
<fr>
    <td align="center">Boys</td>
    <td align= ' center">Girls</ td> 
    <td align=" center"> Total</ td>
</tr>
<tr>
    <td align= ' center">2011 </ td>
    <td align="center">30</td>
    <td align="center">20</td>
    <td align="center">so</td>
</tr>
<tr>
    <td align="center">2012</td>
    <td align="center">45</td:> 
    <td align="center">35</td>
    <td align="cente('>80</fd>
</tr>
<tr>
    <td align="center">2013</td>
    <td align=" center">55</ td> 
    <td align="center">75</td>
    <td align=" center"> 130</ td>
</tr>
<tr>
    <td align="center">2014</td>
    <td align="center.">75</td>
    <td align=" center">9S</ td>
    <td align="center'.'>170</td>
</tr>
</table>
</body>
<html>
shaalaa.com
  Is there an error in this question or solution?
2022-2023 (March) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×