<style>
table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
font-size: 18px;
text-align: left;
border-radius: 8px;
overflow: hidden;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
th, td {
padding: 12px;
border-bottom: 1px solid #ddd;
}
th {
background-color: #4CAF50;
color: white;
}
tr:hover {
background-color: #f5f5f5;
}
</style>
<table>
<tr>
<th>नाम</th>
<th>उम्र</th>
<th>शहर</th>
</tr>
<tr>
<td>अजय</td>
<td>25</td>
<td>दिल्ली</td>
</tr>
<tr>
<td>सोनू</td>
<td>28</td>
<td>मुंबई</td>
</tr>
<tr>
<td>रीता</td>
<td>22</td>
<td>बैंगलोर</td>
</tr>
</table>
Comments
Post a Comment