<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>lable标签</title>
</head>
<body>
<!-- <form action="http://localhost" target="_blank">
<input type="checkbox" name="key" value="新镇" id="a">
<label for="a">新镇</label>
<input type="checkbox" name="key" value="左各庄" id="b">
<label for="b">左各庄</label>
<label><input type="checkbox" name="key" value="滩里">滩里</label>
<input type="submit">
</form> -->
<!-- <form action="http://localhost" target="_blank">
<input type="radio" name="key" value="新镇" id="a">
<label for="a">新镇</label>
<label><input type="radio" name="key" value="左各庄">左各庄</label>
<input type="radio" name="key" value="滩里">滩里
<input type="submit">
</form> -->
<form action="http://localhost" target="blank">
<select name="key" >
<optgroup label="学校名称">
<option value="安里屯">安里屯</option>
<option value="新镇中心">新镇中心</option>
<option value="河西">河西</option>
<option value="安店">安店</option>
</optgroup>
<optgroup label="学校序列">
<option value="安里屯" label="安里屯中心校">安里屯</option>
<option value="新镇中心">新镇中心</option>
<option value="河西">河西</option>
<option value="安店">安店</option>
</optgroup>
</select>
<input type="submit" value="搜索">
</form>
</body>
</html>
转载于:https://www.cnblogs.com/houweidong/p/7530664.html