Slip 30 - B) Write a HTML code to create the following table. Use External CSS to format the table.

Solution:

<html>

<head>

<link rel="stylesheet" href="mystyle.css">

</head>

<body>

<table width="50%" align="left" cellpadding="5" cellspacing="2"  border="3">

<tr>

<td rowspan="2">College/Courses</td>

<td colspan="2">Arts</td>

<td colspan="2">Commerce</td>

</tr>

<tr align="center">

<td width="25%"><b>UG</b></td>

<td><b>PG</b></td>

<td><b>UG</b></td>

<td><b>PG</b></td>

</tr>

<tr>

<td>D. Y. Patil, Pimpri</td>

<td>BA</td>

<td>MA</td>

<td>B.Com</td>

<td>M.Com</td>

</tr>

<tr>

<td>Indira College</td>

<td>BA</td>

<td>MA</td>

<td>BBA(CA)</td>

<td>M.com (Commerce)</td>

</tr>

<tr>

<td>Wadia College</td>

<td>BA</td>

<td>MA</td>

<td>B.Com</td>

<td>M.Com(Ecommerce)</td>

</tr>

</table>

</body>

</html>

mystyle.css

body {background-color: lightblue;}

Post a Comment

0 Comments