Please pay attention to the official account: automated testing practice
The following content for reference: http://www.w3school.com.cn/tags/tag_table.asp
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>table标签</title>
</head>
<body>
<table border="1">
<tr>
<th>姓名</th>
<th>年龄</th>
</tr>
<tr>
<td bgcolor="#7fffd4">船长</td>
<td>18</td>
</tr>
</table>
</body>
</html>
The style of the above code is:
Among them: the tr element defines the table row, the th element defines the table header, and the td element defines the table cell (column).
And <tbody>
often <thead>
and <tfoot>
often, observe the following styles:
<h2>tbody标签</h2>
<table border="1">
<thead>
<tr>
<td>thead内容</td>
<td>年龄</td>
</tr>
</thead>
<tbody>
<td>tbody内容</td>
<td>20</td>
</tbody>
<tfoot>
<td>tfoot内容</td>
<td></td>
</tfoot>
</table>
style:
Here is a brief introduction to everyone. The captain thinks about what to say next, and then talks to everyone in depth.