Write a HTML code to create a table shown below: *
Student Data
Name
Phone
Neha
12345
Riya
67895
Rohan
52354
Answers
Answered by
1
Answer:
<html>
<head>
<style>
table {
font-family: arial;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #F08080;
text-align: left;
padding: 8px;
}
</style>
</head>
<body>
<h2>Student Data</h2>
<table>
<tr>
<th>Name</th>
<th>Phone</th>
</tr>
<tr>
<td>Neha</td>
<td>12345</td>
</tr>
<tr>
<td>Riya</td>
<td>67895</td>
</tr>
<tr>
<td>Rohan</td>
<td>52354</td>
</tr>
</table>
</body>
</html>
HOPE IT HELPS :)
peace!
Similar questions
Science,
3 months ago
History,
3 months ago
Math,
6 months ago
Computer Science,
10 months ago
Chemistry,
10 months ago