index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Semantic HTML Table</title>
<style>
table { width: 100%; max-width: 650px; border-collapse: collapse; font-family: system-ui, sans-serif; }
th, td { border: 1px solid #cbd5e1; padding: 10px 14px; text-align: left; }
th { background: #f1f5f9; color: #0f172a; }
tfoot td { font-weight: bold; background: #f8fafc; }
tbody tr:hover { background: #f8fafc; }
</style>
</head>
<body>
<h2>Quarterly Financial Performance</h2>
<table>
<thead>
<tr>
<th scope="col">Department</th>
<th scope="col">Q1 Revenue</th>
<th scope="col">Q2 Revenue</th>
<th scope="col">Growth</th>
</tr>
</thead>
<tbody>
<tr>
<td>Enterprise Cloud</td>
<td>$1,240,000</td>
<td>$1,580,000</td>
<td>+27.4%</td>
</tr>
<tr>
<td>Developer Tools</td>
<td>$820,000</td>
<td>$995,000</td>
<td>+21.3%</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Total Revenue</td>
<td>$2,060,000</td>
<td>$2,575,000</td>
<td>+25.0%</td>
</tr>
</tfoot>
</table>
</body>
</html>