什么是 table 标签?
在 HTML 中,table 标签用于创建表格。使用 table 标签可以帮助您以可视化和结构化的方式呈现数据。
table 标签的基本语法
以下是 table 标签的基本语法:
<table>
<tr>
<th>姓名</th>
<th>年龄</th>
<th>性别</th>
</tr>
<tr>
<td>张三</td>
<td>28</td>
<td>男</td>
</tr>
<tr>
<td>李四</td>
<td>35</td>
<td>女</td>
</tr>
</table>
运行后会显示如下表格:

其中:
<table>标签用于创建表格。<tr>标签用于创建表格中的行。<th>标签用于创建表头单元格。<td>标签用



















