Slip 23 - B) Write HTML code to create following table. (use External CSS to format the table)

Solution:


Slip23.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;
}

Slip23.html

<html>
<head>
<link rel="stylesheet" href="slip23.css">
</head>
<body>
<table border=1>
<tr>
<th ROWSPAN="2">Course</th>
<th colspan="3">Fee Structure</th>
<th ROWSPAN="2">year</th>
</tr>
<tr>
<th>Fy</th>
<th>Sy</th>
<th>Ty</th>
</tr>
<tr>
<td>BSC</td>
<td>20</td>
<td>25</td>
<td>30</td>
<td>2017</td>
</tr>
<tr>
<td>BCA</td>
<td>20</td>
<td>25</td>
39
<td>30</td>
<td>2017</td>
</tr>
</table>
</body>
</html>

Post a Comment

0 Comments