表单
<form action="">
<fieldset>
<legend>登陆表单</legend>
<p><label for="user">帐号:</label><input type="text" name="user" id="user"/></p>
<p><label for="password">密码:</label><input type="text" name="password" id="password"/></p>
</fieldset>
</form>
fieldset{
border:none;
}
legend {
display: none;
}
表格
<table>
<caption>页面的比较</caption>
<thead>
<tr>
<th>实现方式</th>
<th>代码量</th>
<th>搜索引擎</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
</tbody>
</table>
本文详细介绍了如何使用HTML构建表单和表格,包括表单的字段集、登录表单示例及表格的结构与样式。通过具体的代码示例,展示了如何创建具有字段集的表单以及带有标题和不同单元格的表格。

被折叠的 条评论
为什么被折叠?



