label
for属性和input的id是绑定到一起的。
绑定后,点击label,会自动选中input
<div>
<label for="unname"> 用户名:</label>
<input type="text" id="unname">
</div>
textarea
<div>
<span>请输入意见:</span>
<label for="name"></label>
<textarea name="name id="name" cols="30" rows="10"></textarea>
</div>
现象:
select
selected属性可以 控制默认值
<form action="http:www.baidu.com">
<select name="miao">
<option value="1">单肩</option>
<option value="2" selected>双肩</option>
</select>
<input type="submit" id="miao">
</form>
</div>
https://v3.bootcss.com/getting-started/
<div>
<ul>
<li>miaomiao</li>
<li>dingdongdong</li>
</ul>
<ol>
<li>miaomiao</li>
<li>dingdongdong</li>
</ol>
<dl>
<dd>名字</dd>
<dt>李苗苗</dt>
<dt>丁栋栋</dt>
</dl>
</div>
<div>
<table>
<thead>
<th>姓名</th>
<th>年龄</th>
</thead>
<tbody>
<tr>
<td>xiaozhang</td>
<td>18</td>
</tr>
<tr>
<td>xiaowang</td>
<td>30</td>
</tr>
</tbody>
</table>
</div>
表格会有变化
合并
<div>
<table border="1px">
<thead>
<th>姓名</th>
<th colspan="2">身高测量</th>
</thead>
<tbody>
<tr>
<td>xiaozhang</td>
<td>18</td>
<td>18.9</td>
</tr>
<tr>
<td>xiaowang</td>
<td>30</td>
<td>30.1</td>
</tr>
</tbody>
</table>
</div>
合并
<div>
<table border="1px">
<thead>
<th>姓名</th>
<th colspan="2">身高测量</th>
</thead>
<tbody>
<tr>
<td>xiaozhang</td>
<td rowspan="2">18</td>
<td rowspan="2">30</td>
</tr>
<tr>
<td>xiaowang</td>
</tr>