表单:收集用户信息
一、 组成:
文本框 <input type="text"/>
密码框 <input type="password"/>
单选框 <input type="radio"/>
多选 <input type="checkbox"/>
基础下拉框:
<select>
<option></option>
</select>
多选下拉框:
<select multiple="multiple">
<option></option>
</select>
分组下拉框:
<select>
<optgroup label=" 北京 ">
<option></option>
</optgroup>
</select>
多行文本框:
<textarea></textarea>
文件:
<input type="file"/>
按钮:
提交按钮:<input type="submit"value=" 提交 "/>
重置按钮:<input type="reset"value=" 重置 "/>
普通按钮:<input type="button"value=" 普通 "/>
图片按钮:<input type="image"src=" 地址 "/>
表单域:
<fieldset>
<legend></legand>
</fieldset>
二、实操练习
代码:
头像:
自我介绍:
- </code></pre><br><br><br><br><br><br></span><br><span> <input type="button" value="验证"></span><br><span> <input type="submit" value="提交"></span><br><span> <input type="reset" value="重置"></span><br><span> <input type="image" src="http://pic.qiantucdn.com/58pic/13/88/40/76b58PICeqz_1024.png!/format/webp" width="100" height="50" value="测试"></span><br><span> </span></p>
- <p><span></form></span></p>
- </span>
来源: http://www.bubuko.com/infodetail-1976046.html