HTML FORM
組合表單中相關元素fieldset
可以用來分類表單中的元素,legend可以用來幫忙增加label
<form>
<fieldset>
<legend>health information</legend>
height: <input type="text" />
weight: <input type="text" />
</fieldset>
</form>
http://www.w3school.com.cn/tags/tag_legend.asp
Select
可以使用optgroup來幫下拉是選單做分類
<select>
<optgroup label="Swedish Cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
</optgroup>
<optgroup label="German Cars">
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</optgroup>
</select>
http://www.w3school.com.cn/tags/tag_optgroup.asp
label
<label for="name">
有對到相對應input的id的話,你點label游標會自動focus在input