Computer Science, asked by dhruvacm9090, 4 months ago

Write a HTML code to create a table shown below: *
Student Data
Name
Phone
Neha
12345
Riya
67895
Rohan
52354​

Answers

Answered by raheepradeep6306
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