我很难完成这项任务。这是一个简单的HTML编码任务,但我有问题格式化我的表看起来像问什么。我尝试了不同类型的休息等,但它不会像教练想要的那样工作。在HTML中格式化嵌套表格
这里是我的表:
而这里的一个我的教练希望:
这里是我的代码:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<table border="border">
<tr>
<th>Header Column 1</th>
<th>Header Column 2</th>
<th>Header Column 3</th>
<th>Header Column 4</th>
</tr>
<tr>
<td>Row 2 - Item 1</td>
<td>Row 2 - Item 2</td>
<td><b>Row 2:Nested table 1</b>
<table border="border">
<tr>
<th>Row 1 Header</th>
<td>item</td>
<tr>
<th>Row 2 Header</th>
<td>item</td>
<tr>
<th>Row 2 Header</th>
<td>item</td>
</table>
</td>
<td>Row 2 - Item 4
<br>A second line</td>
<tr>
<td>Row 3 - Item 1</td>
<td>Row 3 - Item 2</td>
<td>
<br>
</td>
<td>Row 3 - Item 3</td>
</tr>
<tr>
<td>Row 4 - Item 1</td>
<td>Row 4 - Item 2</td>
<td>Row 4 - Item 3</td>
</table>
</body>
</html>