【发布时间】:2021-06-07 20:38:55
【问题描述】:
以下是用于创建基本表格的代码,我想使用任何名称显示表格的标题。
<table>
<tr>
<th>name</th>
<th>age</th>
</tr>
<tr>
<td>mark</td>
<td>23</td>
</tr>
</table>
【问题讨论】:
标签: html html-table
以下是用于创建基本表格的代码,我想使用任何名称显示表格的标题。
<table>
<tr>
<th>name</th>
<th>age</th>
</tr>
<tr>
<td>mark</td>
<td>23</td>
</tr>
</table>
【问题讨论】:
标签: html html-table
这就是答案。
<table>
<caption>Table Caption</caption>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>mark</td>
<td>23</td>
</tr>
</table>
【讨论】: