读书人

表单练习题

发布时间: 2012-11-23 00:03:43 作者: rapoo

表单练习

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>表单练习</title></head><body><form>用户名:<input type="text" value="游客"/> <br />密码:<input type="password" /><br />性别:<input type="radio" name="sex" checked="checked" />男<input type="radio" name="sex" />女<br />技术:<input type="checkbox" />JAVA<input type="checkbox" />HTML<input type="checkbox" />CSS<br />附件:<input type="file" /><br /><input type="hidden" name="key" value="hehe" /><br /> <input type="image" src="001.jpg" height="200px" width="300px" /><br /><input type="button" value="我是一个按钮" onclick="javascript:alert('我弹')" /><input type="submit" value="提交数据" /><input type="reset" value="清除数据" /><br /><select multiple="multiple" size="3"><option>--选择国家--</option><option>美国</option><option>英国</option><option selected="selected">中国</option></select><textarea cols="20" rows="10"></textarea></form></body></html>

运行结果:

表单练习题

读书人网 >Web前端

热点推荐