please answer this question. (Q) . Write codes to create the following table in red border:
Answers
Answer:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style>
body {
padding:0px;
margin:0px;
}
.center{
text-align:center;
font-size:20px;
}
table{
border:1px solid red;
font-size:20px;
text-align:left;
}
table tr td{
border:1px solid red;
padding:10px;
}
.font{
font-size:30px;
}
</style>
</head>
<body>
<div class="center">Fruit sale</div><br>
<table align="center">
<tr class="font">
<td>FRUIT</td>
<td>PRICE(in kg)</td>
</tr>
<tr>
<td>Apple</td>
<td>Rs.80/-</td>
</tr>
<tr>
<td>Grapes</td>
<td>Rs.70/-</td>
</tr>
<tr>
<td>Banana</td>
<td>Rs.60/-</td>
</tr>
<tr>
<td>Pomegranate</td>
<td>Rs.85/-</td>
</tr>
</table>
</body>
</html>
Explanation:
This code will make according to your question.
Hope you understand.