<table align="center" border="1px" width="500" cellpadding="100px" cellspacing="2px" bordercolor="pink">
<caption>CAPTIONcaption>
<thead>
<tr>
<th>th>
<th>th>
<th>th>
tr>
thead>
<tfoot>
<tr>
<td colspan="2">td>
tr>
tfoot>
<tbody>
<tr>
<td rowspan="2">td>
<td>2td>
<td>td>
tr>
tbody>
table>
label 元素不会向用户呈现任何特殊的样式。不过,它为鼠标用户改善了可用性,因为如果用户点击 label 元素内的文本,则会切换到控件本身。
<form name="test" action="#" method="get">
<label for="name">偶像练习生:<input id="name" type="text" placeholder="请输入姓名" value="蔡徐坤">label>
<br>
<label for="habit">兴趣:
<input type="checkbox" name="habit" id="1">唱
<input type="checkbox" name="habit" id="2">跳
<input type="checkbox" name="habit" id="3">rap
<input type="checkbox" name="habit" id="4">篮球label>
<br>
<select name="aiyo" id="">
<option value="">哎哟option>
<option value="">你干嘛option>
select>
<br>
<input type="radio" name="sex" id="1">Boy
<input type="radio" name="sex" id="2">girl
<br>
<input type="file" name="file" id="">
<br>
<input type="image" src="http://static.yujing.fit/image/鞠婧祎/20.jpg" alt="" width="30px">
<br>
<textarea name="" id="" cols="30" rows="10">textarea>
<br>
<input type="submit" value="提交">
<input type="reset" value="重置">
form>
效果展示: