Skip to content

Instantly share code, notes, and snippets.

@liuzy163
Created January 20, 2016 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liuzy163/56e1f8a52c6d3481863e to your computer and use it in GitHub Desktop.
Save liuzy163/56e1f8a52c6d3481863e to your computer and use it in GitHub Desktop.
Nested HTML table
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Nested Table</title>
<style>
table {
border-collapse: collapse;
}
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<table style="width:100%">
<tr>
<th rowspan="2">ID</th>
<th colspan="2">Name</th>
<th rowspan="2">Grade</th>
</tr>
<tr>
<th>First Name</th>
<th>Last Name</th>
</tr>
<tr>
<td>100201</td>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>100202</td>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
<tr>
<td>100203</td>
<td>John</td>
<td>Doe</td>
<td>80</td>
</tr>
</table>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment