单选 多选 下拉框
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>单选框、复选框</title>
</head>
<body>
<form action="save.php" method="post" >
<label>性别:</label>
<label>男</label>
<input type="radio" value="1" name="sex" checked />
<label>女</label>
<input type="radio" value="2" name="sex" />
</br></br>
<label>爱好:</label>
<label>旅游</label>
<input type="checkbox" value="1" name="habit" checked/>
<label>摄影</label>
<input type="checkbox" value="2" name="habit" />
<label>健身</label>
<input type="checkbox" value="3" name="habit" />
<label>购物</label>
<input type="checkbox" value="4" name="habit" />
</br></br>
<label>最喜欢的城市:</label>
<select id="city" >
<option value="纽约">纽约</option>
<option value="新加坡">新加坡</option>
<option value="威尼斯">威尼斯</option>
<option value="香港" selected>香港</option>
</select>
</form>
</body>
</html>