表单:
<form action="success.html" method="post">
</form>
1 文本框:<input type="text" value="1234567"/>
2 密码框:<input type="password" value="123456"/>
3 按钮:
<input type="submit" value="登录"/>
<input type="reset" value="重置"/>
<input type="button" value="点我" οnclick="alert('I love you!')"/>
<input type="image" src="img/renren.gif"/>
<button>点我you惊喜</button>
4 单选按钮:
<input type="radio" name="sex" value="男" checked />男
<input type="radio" name="sex" value="女"/>女
5 复选按钮:
<input type="checkbox" name="love" value="1" checked />吃饭
<input type="checkbox" name="love" value="2"/>睡觉
6 文件上传
<input type="file"/>
7 滑块
<input type="range"/>
8 邮箱 <input type="email"/>
9 数字:<input type="number" step="10"/>
10 搜索框:<input type="search" />
11 隐藏框:<input type="hidden" />
12 下拉列表(列表框):
<select name="job">
<option value="1">管理员</option>
<option value="2">普通员工</option>
<option value="3" selected>CEO</option>
<option value="4">财务总监</option>
</select>
13 文本域:
<textarea name="txt" rows="10" cols="50">客户协议</textarea>