/
form.html
64 lines (64 loc) · 2.23 KB
/
form.html
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<form action="#" method="get">
<div>
<label for="username">姓名 :</label>
<input id="username" type="text" name="username" placeholder="请输入用户名">
</div>
<div>
<label for="password" >密码 :</label>
<input id="password" type="password" name="password" >
</div>
<div>
<label>性别 :</label>
<input type="radio" name="sex" value="male">男
<input type="radio" name="sex" value="female">女
</div>
<div>
<label>爱好 :</label>
<input type="checkbox" name="hobby" value="game">游戏
<input type="checkbox" name="hobby" value="journey">旅游
<input type="checkbox" name="hobby" value="sport">运动
</div>
<div>
<label>评论 :</label>
<textarea name="judgement" cols="6" rows="7"></textarea>
</div>
<div>
<select name="name">
<<<<<<< HEAD
<option value="xiaomi">华为</option>
<option value="huawei">小米</option>
<option ></option>oppo</option>
=======
<option value="huawei">华为</option>
<option value="xiaomi">小米</option>
<option value="oppo" selected>oppo</option>
>>>>>>> 8fd89c8f232d1f7cbc00f1a99b3c00c4115ebe52
</select>
</div>
<input type="hidden" name="csrf" value="345623fdsd">
<!-- 点击提交在Network可以看到name:"csrf" value:"345623fdsd"-->
<<<<<<< HEAD
<input type="submit" value="提交">提交
<input type="button" value="提交">
<!-- button不能提交信息 -->
<input type="reset" value="reset">
=======
<input type="submit" value="提交">
<!-- <input>的type的值为button不能提交信息 -->
<input type="button" value="提交">
<!-- <button>的type的值为button不能提交信息,为type="submit"则可以提交,不设定type的类型值,则默认为type="submit" -->
>>>>>>> 8fd89c8f232d1f7cbc00f1a99b3c00c4115ebe52
<button>提交</button>
<input type="file" accept="image/png, image/jpeg">
</form>
</body>
</html>