Q. Type the sample HTML5 program using table. Modified it to remove RS and paise column and specify price as 500.50
HTML Code:
<!DOCTYPE HTML>
<HTML>
<HAED>
</HAED>
<BODY>
<TABLE BORDER="2" CELLPADDING="4" bordercolordark="rad" bordercolorligit="blue"align="center">
<caption>list of book</caption>
<tr>
<th rowspan="2" align+"center">Item no</th>
<th rowspan="2" align+"center">Item name</th>
</tr>
<tr>
<th align="center">SPECIFIC PRICE</th>
</TR>
<tr>
<td align="center">1</td>
<td align="center">pragramming in c++</td>
<td align="center">500.50</td>
</tr>
<tr>
<td align="center">3</td>
<td align="center">pragramming in c++</td>
<td align="center">345.00</td>
</tr>
</table>
</body>
</html>
Output:
HTML Code:
<!DOCTYPE HTML>
<HTML>
<HAED>
</HAED>
<BODY>
<TABLE BORDER="2" CELLPADDING="4" bordercolordark="rad" bordercolorligit="blue"align="center">
<caption>list of book</caption>
<tr>
<th rowspan="2" align+"center">Item no</th>
<th rowspan="2" align+"center">Item name</th>
</tr>
<tr>
<th align="center">SPECIFIC PRICE</th>
</TR>
<tr>
<td align="center">1</td>
<td align="center">pragramming in c++</td>
<td align="center">500.50</td>
</tr>
<tr>
<td align="center">3</td>
<td align="center">pragramming in c++</td>
<td align="center">345.00</td>
</tr>
</table>
</body>
</html>
Output:
Item no | Item name | |
---|---|---|
SPECIFIC PRICE | ||
1 | pragramming in c++ | 500.50 |
3 | pragramming in c++ | 345.00 |
0 Comments