write an HTML code to create the following table
Answers
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>name</th>
<th>Hindi</th>
<th>English</th>
<th>English</th>
</tr>
<tr>
<td>Aman</td>
<td>60</td>
<td>79</td>
<td>58</td>
</tr>
<tr>
<td>Khushboo</td>
<td>68</td>
<td>72</td>
<td>52</td>
</tr>
<tr>
<td>sony</td>
<td>52</td>
<td>86</td>
<td>64</td>
</tr>
<tr>
<td>Timsee</td>
<td>84</td>
<td>64</td>
<td>61</td>
</tr>
</table>
</body>
</html>
Explanation:
style can be changed as you wish