-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path04.html
More file actions
38 lines (35 loc) · 1.45 KB
/
04.html
File metadata and controls
38 lines (35 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>表单标签</title>
</head>
<body>
<!--action提交地址 method提交方式 如果表单中有文件上传必须有enctype用于文件转码-->
<form action="" method="post" enctype="">
用户名:<input type="text" name="username" value="" placeholder="请输入用户名"><br>
密码:<input type="password" name="password" placeholder="请输入密码"><br>
性别:<input type="radio" name="gender" value="1" checked>男
<input type="radio" name="gender" value="0">女 <br>
爱好:<br>
<input type="checkbox" name="sport[]" value="0">篮球<br>
<input type="checkbox" name="sport[]" value="1">足球 <br>
<input type="checkbox" name="sport[]" value="2">乒乓球 <br>
学历:<br>
<select name="educational background">
<option value="0">小学</option>
<option value="1">初中</option>
<option value="2">高中</option>
<option value="3">本科</option>
<option value="4">研究生</option>
</select>
<br>
请选择上传的文件:<input type="file" name="file"><br>
请输入个人说明:<br>
<textarea name="text" id="" cols="30" rows="10">请输入额外添加的信息</textarea><br>
<input type="submit" value="确定"><br>
<input type="reset" value="重置">
<input type="hidden" name="id" value="0">
</form>
</body>
</html>