html表单

来源:互联网 发布:法国制造业年度数据 编辑:程序博客网 时间:2024/06/18 08:36
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>表单</title>
</head>
<body>
<!--表单  -->


<!--*******method提交方式有get和post  
*get地址栏携带提交数据,post不会携带
**get请求安全低,post比较高
***get有请求数据大小的限制,post没有-->
<form action="表单.html" method="get">
账号:<input type="text" name="username"><br> 密码:<input
type="password" name="password"><br>
<!--单选 checked默认选择 -->
性别:<input type="radio" value="boy" name="sex" checked="checked">男
<input type="radio" value="girl" name="sex">女<br> <input
type="file"><br>
<!--下拉框 selected 默认选择 -->
生日 <select name="birthday">
<option selected="selected" value="1991">1991</option>
<option value="1992">1992</option>
<option value="1993">1993</option>
<option value="1994">1994</option>
</select><br>
<!-- 文本域 -->
个人简介<br>
<textarea rows="10" cols=""10></textarea>
<br> 隐藏内容代码看<input type="hidden"><br>
<!-- 按钮 -->
<input type="submit" value="提交" name=""><br> 头像<br>
<input type="image" src="" width="100" height="100" alt="你的头像真丑"><br>
<input type="reset" value="重置"><br> <input type="button"
value="普通按钮"><br>
</form>


</body>
</html>
0 0
原创粉丝点击