HTML表格的基本组成:<caption>: 表格标题或摘要<thead>: 表格标题行<tbody>: 表格数据行主体<tfoot>: 表格脚注行<tr>: 一行表格数据<th>: 表头单元格<td>: 数据单元格

HTML 中表格的基本组成
表格 (table) 元素是 HTML 中用于创建表格数据的元素。它由几个基本组成部分组成:
<caption>元素:
<thead>元素:
立即学习“前端免费学习笔记(深入)”;
<tbody>元素:
<tfoot>元素:
<tr>元素:
<th>元素:
<td>元素:
示例:
<code class="html"><table>
<caption>员工信息</caption>
<thead>
<tr>
<th>姓名</th>
<th>职务</th>
<th>薪水</th>
</tr>
</thead>
<tbody>
<tr>
<td>约翰·史密斯</td>
<td>经理</td>
<td>$50,000</td>
</tr>
<tr>
<td>玛丽·安</td>
<td>工程师</td>
<td>$40,000</td>
</tr>
</tbody>
</table></code>以上就是html中table的基本组成的详细内容,更多请关注php中文网其它相关文章!
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号