表单and表单元素

表单

<form action="" method="get/post" ></form>

上传到服务器

表单元素

文本类

<input type="text" value=""> - 普通文本框

<input type="text" password=""> - 密码框 

<textarea></textarea>- 文本域 可还行

<input type="text" hidden=""> - 隐藏 不显示

 

按钮类

<input type="text" button=""> - 普通按钮

<input type="text" submit =""> - 提交按钮

<input type="text" reset =""> - 重置按钮

<input type="text" image =""> - 图片按钮 可用于提交

 

选择类

<input type="radio"/>  单选

   name="" (分组) 单选只能选一个    value="" (上传到服务器数据)    id="值" <label for="值">(图片/文字)</label> (点击文字也可选择)

<input type="checkbox"/>    多选

<select>                                           <select> 下拉选择</select>

<option>值1</option>

<option>值1</option>

</select>

 

<input type="file"/>  上传文件

 

posted @ 2017-03-22 21:26  v587yy  阅读(138)  评论(0编辑  收藏  举报