Computer Science, asked by gaikwadv2812002, 10 months ago


1. Write html code to create following table
RollNo
| 101
102
| 103
Name
Nilesh Patil
Pranav Kadam
Suhas Choudhari
Marks
80.56%
90.45%
67.89%

Answers

Answered by chandans5
9

Answer:

<!DOCTYPE html>

<html>

<head>

<style>

table {

 font-family: arial, sans-serif;

 border-collapse: collapse;

 width: 100%;

}

td, th {

 border: 1px solid #dddddd;

 text-align: left;

 padding: 8px;

}

tr:nth-child(even) {

 background-color: #dddddd;

}

</style>

</head>

<body>

<h2>HTML Table</h2>

<table>

 <tr>

   <th>Roll No</th>

   <th>Name</th>

   <th>Marks</th>

 </tr>

 <tr>

   <td>101</td>

   <td>Nilesh patil</td>

   <td>80.56%</td>

 </tr>

 <tr>

   <td>102</td>

   <td>Pranav Kadam</td>

   <td>90.45%</td>

 </tr>

 <tr>

   <td>103</td>

   <td>Suhas Choudhari</td>

   <td>67.89%</td>

 </tr>

   

</table>

</body>

</html>

Explanation:

Roll No Name Marks

101 Nilesh patil 80.56%

102 Pranav Kadam 90.45%

103 Suhas Choudhari 67.89%

Similar questions