表单:<form></form>
表单元素:文本输入框 <input type="text"/>
密码输入框 <input type="password"/>
下拉菜单 <seleect><option></option></select> 按ctrl实现多选 <select name="a" multiple="multiple"/> 属性size可以改变下拉菜单的大小!
单选框控件:<input type="radio"/> 实现只选一个 <input type="radio" name="a"/>
实现点文字也可以选中 <input type="radio" name="a" id="b" ><label for="b" >男</label>
复选框控件:<input type="checkbox"/>
上传按钮控件:<input type="file"/>
多行输入框控件:<input type="textarea"/> 控制多行输入框的高度 rouws="20" 宽度 cols=“20”
重置按钮:<input type="reset"/> 只能在form里用
提交按钮:<input type="submit"/>只能在form里用
一般按钮:<input type="botton" value="一般按钮"/> 它可以用在网页的任何地方。
表单提交路径:<action="后台网页" method="post 或 get" > 传输方式:get 传输数据量小 安全系数要求低的数据 传递速度快 post 数据量相对大一些 安全系数要 高的。
原文:http://www.cnblogs.com/ywf190337316/p/5146871.html