<select name="" value="">
<option>内容1</option>
<option value="值">内容2</option>
.....
</select>
1.name写在select中
2.提交的值分两种情况
2.1 如果option没写value,那么select的value就是被选中的option的内容
2.2 如果option有value,那么select的value就是被选中的option的value值
3. select的属性
name,value
size-----设置显示option的个数,默认是1,1的时候是下拉选择框
如果设置的值>1,那么显示形式会变成滚动选择列表
multiple 无值属性,设置多选,如果使用multiple,需要name属性是数组
4.option的属性
value 定义选项的值
selected 无值属性,设定默认选中