<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Custom Table</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
background-color: #f0f2f5;
}
.container {
max-width: 800px;
margin: 50px auto;
padding: 20px;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
}
th, td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #ddd;
}
th {
background-color: #007bff;
color: white;
}
tr:hover {
background-color: #f1f1f1;
}
.table-container {
overflow-x: auto;
}
</style>
</head>
<body>
<div class="container">
<h1>Custom Table</h1>
<div class="table-container">
<table>
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
<tr>
<td>John Doe</td>
<td>john@example.com</td>
<td>(123) 456-7890</td>
</tr>
<tr>
<td>Jane Smith</td>
<td>jane@example.com</td>
<td>(234) 567-8901</td>
</tr>
<tr>
<td>Bob Johnson</td>
<td>bob@example.com</td>
<td>(345) 678-9012</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>