Created
January 20, 2016 14:33
-
-
Save liuzy163/56e1f8a52c6d3481863e to your computer and use it in GitHub Desktop.
Nested HTML table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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