IP Assig.e
IP Assig.e
1|Page
I. Internet programing group Assignment for IT Summer Students(15%)
1. Write the HTML code that displays the following table output with background
color =Yellow .
Answer:-
<!DOCTYPE html>
<html>
<head>
<style>
table {
width: 60%;
border-collapse: collapse;
background-color: yellow;
}
table, th, td {
border: 1px solid black;
}
th {
background-color: yellow;
padding: 10px;
text-align: center;
}
td {
background-color: yellow;
padding: 10px;
text-align: center;
}
2|Page
</style>
</head>
<body>
<table>
<tr>
<th colspan="5">Students Record</th>
</tr>
<tr>
<th>Name</th>
<th>Phone number</th>
<th>Address</th>
<th>Department</th>
<th>College</th>
</tr>
<tr>
<td>Alemu</td>
<td>0933669945</td>
<td>Injibara</td>
<td>IT</td>
<td>CET</td>
</tr>
<tr>
<td>Tsion</td>
<td>0944558855</td>
<td>Dangila</td>
<td>CS</td>
<td></td>
</tr>
<tr>
<td>Admasu</td>
<td>0922773365</td>
<td>Chagni</td>
<td>Maths</td>
<td>CNCS</td>
</tr>
<tr>
<td>Felegush</td>
<td>0999335575</td>
<td>BahirDar</td>
<td>Law</td>
<td>SLAW</td>
3|Page
</tr>
</table>
</body>
</html
Out put
4|Page