Slip 18 - B) Write the HTML code which generates the following output. (Use external CSS to format the given table)

Solution:


Table.css

table{
border:5px solid red;
}
th
{
border:3px solid blue;
text-align:center;
color:green;
font-size:15px;
}
td
{
border:3px solid yellow;
font-size:11px;
color:blue;
}

Slip18.html

<html>
<head>
<link rel="stylesheet" href="table.css">
</head>
<body>
<table>
<tr>
<th rowspan="2">Book_No</th>
<th rowspan="2">Book_Name</th>
<th colspan="2">Price</th>
33
</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