//选择框
input标签的类型为 radio 时是多选按钮, 类型为 checkbox 时是复选框, name属性值相同视为同一组,拥有属性checked时视为默认选中元素,或者写成checked='checked'.
单选框
eg:
<input type="radio"name="a">
<input type="radio" name='a' checked>
复选框
eg:
<input type="checkbox" name='b'>
<input type="checkbox" name='b'>
<input type="checkbox" name='b'>
<input type="checkbox" name='b'>
//下拉框
select标签为下拉框,有multiple属性时可以多选(选择时按住ctrl键),没有时只能单选,option标签有属性selected时视为默认选中元素,或者写成selected='selected'.
单选下拉框
eg:
<select name='one'>
<option>1</option>
<option>2</option>
<option>3</option>
<option selected>4</option>
</select>
多选下拉框
eg:
<select name='more' multiple="">
<option >1</option>
<option selected>2</option>
<option>3</option>
<option>4</option>
</select>