English

Write the HTML code for following table: Year 2020 2021 2022 Sales Units 200 500 700 Income Rs. 20,000 Rs. 50,000 Rs. 70,000 - Computer Science 1

Advertisements
Advertisements

Question

Write the HTML code for following table:

  Year
2020 2021 2022
Sales Units 200 500 700
Income Rs. 20,000 Rs. 50,000 Rs. 70,000
Code Writing
Advertisements

Solution

<html>
<body>
<table border="1"width="50%">
<tr>
<td rowspan="2" colspan="2"></td>
<td align="center" colspan="3">Year</td>
</tr>
<tr>
<td>2020</td>
<td>2021</td>
<td>2022</td>
</tr>
<tr>
<td rowspan="2">sales</td>
<td>Units</td>
<td>200</td>
<td>500</td>
<td>700</td>
</tr>
<tr>
<td>Income</td>
<td>Rs. 20,000</td> 3
<td>Rs. 50,000</td>
<td>Rs. 70,000</td>
</tr>
</table>
</body>
</html>
shaalaa.com
  Is there an error in this question or solution?
2024-2025 (March) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×