Skip to content

Instantly share code, notes, and snippets.

@aacassandra
Last active May 14, 2020 21:08
Show Gist options
  • Save aacassandra/b3dafe73d830b6d563137487f31fc8e1 to your computer and use it in GitHub Desktop.
Save aacassandra/b3dafe73d830b6d563137487f31fc8e1 to your computer and use it in GitHub Desktop.
Belajar HTML: Table Merging (18/33) With colspan
<!DOCTYPE html>
<html>
<head>
<title>sahabatcoding</title>
</head>
<body>
<table border="1" cellpadding="10">
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
<th>Header 4</th>
</tr>
<tr>
<td>row 1, col 1</td>
<td>row 1, col 2</td>
<th colspan="2">colspan = 2</th>
</tr>
<tr>
<td>row 2, col 1</td>
<td>row 2, col 2</td>
<td>row 2, col 3</td>
<td>row 2, col 4</td>
</tr>
<tr>
<td>row 3, col 1</td>
<td>row 3, col 2</td>
<td>row 31, col 3</td>
<td>row 3, col 4</td>
</tr>
<tr>
<td>row 4, col 1</td>
<td>row 4, col 2</td>
<td>row 4, col 3</td>
<td>row 4, col 4</td>
</tr>
</table>>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment