表单在HTML上是用户不同类型的输入。
1.单选按钮
<form action="">
<input type="radio" name="BOOL" value="yes">Yes<br>
<input type="radio" name="BOOL" value="no">No
</form>
2.多选按钮
<form action ="">
<input type = "checkbox" name="position" value = "student">学生<br>
<input type = "checkbox" name="position" value = "teacher">老师
</form>
3.下拉菜单
<form action ="">
<select name = "number">
<option value = "one">One</option>
<option value = "two">Two</option>
<option value = "three">Three</option>
<option value = "four" selected>Four</option>
<option value = "five">Five</option>
<!--selected 代表指定默认显示-->
4、文本与密码输入
<form action ="">
用户名:<input type = "text" nane = "name"><br>
密码:<input type = "password"name = "pawd">
</form>
5、多行文字的输入
<textarea rows="10" cols="30">
我是一个文本框。
</textarea>