Slip 2 - B) Write the HTML code to create the following table. Use internal CSS to format the table

Solution:

<html>

<head>

<style type="text/css">

body{background-color:pink;}

th{color:Blue;}

</style>

</head>

<body>

<table border=1>

<tr>

<th rowspan="2">Book No</th>

<th rowspan="2"">BookName</th>

<th colspan="2">Price</th>

</tr>

<tr>

<th>Rs.</th>

<th>Paise</th>

</tr>

<tr>

<td>101</td>

<td>DBMS</td>

<td>200</td>

<td>50</td>

</tr>

</table>

</body>

</html>

Post a Comment

0 Comments