<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<!--学习表单提交 input的type标签可以分为,1\用户名和密码,"text"和"password"2\单选按钮"radio"3\复选框"checkBox"4\按钮"button" select 下拉列表,用option控制-->
<body>
<form action="*" method="get" >
用户名:<input type="text" name="username" /></br>
密码:<input type="password" name="password"/></br>
确认密码:<input type="password" /></br>
性别:男<input type='radio' name="sex" value="0"/> 女<input type="radio" name="sex" value="1"/></br>
爱好:篮球<input type="checkbox" name="habby" value="1"/>
足球<input type="checkbox" name="habby" value="2"/>
羽毛球<input type="checkbox" name="habhby" value="3"/></br>
<input type="reset"value="清空"/>
<input type="submit" value="提交"/>
</form>
</body>
</html>
web前端知识(04html的表单)
猜你喜欢
转载自blog.csdn.net/chehec2010/article/details/104446024
今日推荐
周排行