-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforms syntax.html
More file actions
135 lines (76 loc) · 3.06 KB
/
forms syntax.html
File metadata and controls
135 lines (76 loc) · 3.06 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
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE html >
<html>
<body>
<form class="" action="" method="post">
<label>YOUR NAME : </label>
<input type="text" name="" value="">
<input type="color" name="" value=""> <br>
<label>Do u want to sign up</label>
<input type="submit" name="" value="submit">
<input type="checkbox" name="" value=""><br>
<input type="date" name="" value=""><br>
<input type="range" name="" value=""><br>
<input type="radio" name="" value=""><br>
<input type="file" name="" value="">
<br>
<label>PASSWORD : </label>
<input type="password" name="" value="">
</form>
<form action="process.php">
<!-- Text -->
<div>
<label for="name">Name</label><br>
<input type="text" id="name" name="name" placeholder="Enter your name">
</div>
<!-- Email -->
<div>
<label for="email">Email</label><br>
<input type="email" name="email" id="email" value="@gmail.com">
</div>
<!-- Textarea -->
<div>
<label for="message">Message</label><br>
<textarea name="message" id="message" cols="30" rows="10"></textarea>
</div>
<!-- Select -->
<div>
<label for="gender">Gender</label><br>
<select name="gender" id="gender">
<option value="male">Male</option>
<option value="female" selected>Female</option>
<option value="other">Other</option>
</select>
</div>
<!-- Number -->
<div>
<label for="age">Age</label><br>
<input type="number" name="age" id="age">
</div>
<!-- Date -->
<div>
<label for="birthdate">Birthdate</label><br>
<input type="date" name="birthdate" id="birthdate">
</div>
<!-- Radio -->
<div>
<label for="membership">Membership</label>
<input type="radio" name="membership" id="membership" value="simple">Simple
<input type="radio" name="membership" id="membership" value="standard" checked>Standard
<input type="radio" name="membership" id="membership" value="super">Super
</div>
<!-- Checkbox -->
<div>
<label for="likes">destination you want to visit</label>
<input type="checkbox" name="likes" id="likes" value="Maldives">Maldives
<input type="checkbox" name="likes" id="likes" value="Singapore">Singapore
<input type="checkbox" name="likes" id="likes" value="bali">Bali
</div>
<!-- Input Submit -->
<input type="submit" value="Submit"><br>
<!-- Submit using button tag
<button type="submit">Submit</button> -->
<!-- Reset -->
<button type="reset">Reset</button>
</form>
</body>
</html>