<!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>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Working Code</td>
<td>Puja K</td>
<td>India</td>
</tr>
<tr>
<td>ServiceNow</td>
<td>Bill McDermott</td>
<td>USA</td>
</tr>
<tr>
<td>Unitm Technologies</td>
<td>Piyush Kalra</td>
<td>India</td>
</tr>
<tr>
<td>Aelum Consulting</td>
<td>Komal Gupta</td>
<td>India</td>
</tr>
</table>
</body>
</html>
Output:
Create Table in Html
admin Changed status to publish December 26, 2023