-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforms.html
282 lines (280 loc) · 10.5 KB
/
forms.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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Формы в HTML5</title>
</head>
<body>
<form method="post" autocomplete="off" action="http://localhost:8080/login.php">
<input name="login" />
<input name="password" autocomplete="on" />
<input type="submit" value="Войти" />
</form>
<form method="get" action="index.html">
<input type="text" name="login" value="Tom"/>
<input type="password" name="password"/>
<input type="submit" value="Войти" />
</form>
<form>
<p>
<input type="text" name="search" />
<input type="image" src="search.png" name="submit" />
</p>
<p><input type="text" name="login"/></p>
<p><input type="password" name="password"/></p>
<p>
<input type="submit" value="Отправить" />
<input type="reset" value="Отмена" />
</p>
<p><input type="text" name="login"/></p>
<p><input type="password" name="password"/></p>
<p>
<button type="submit" formmethod="get" formaction="index.html">Отправить</button>
<button type="reset">Отмена</button>
</p>
</form>
<form>
<p><input type="text" name="userName" placeholder="Введите имя" size="18" /></p>
<p><input type="text" name="userPhone" placeholder="Введите номер телефона" size="18" maxlength="11" /></p>
<p>
<button type="submit">Отправить</button>
<button type="reset">Отмена</button>
</p>
<p><input type="text" name="userName" value="Том" readonly /></p>
<p><input type="text" name="userPhone" value="+12345678901" disabled /></p>
<form>
<p><input list="phonesList" type="text" name="model" placeholder="Введите модель" /></p>
<p>
<button type="submit">Отправить</button>
</p>
</form>
<datalist id="phonesList">
<option value="iPhone 6S" label="54000"/>
<option value="Lumia 950">35000</option>
<option value="Nexus 5X"/>
</datalist>
</form>
<form>
<p>
<label for="login">Логин: </label>
<input type="text" id="login" name="login" />
</p>
<p>
<label for="password">Пароль: </label>
<input type="password" id="password" name="password" />
</p>
<p>
<button type="submit">Отправить</button>
</p>
</form>
<form>
<p>
<label for="login">Логин: </label>
<input type="text" autofocus id="login" name="login" />
</p>
<p>
<label for="password">Пароль: </label>
<input type="password" id="password" name="password" />
</p>
<p>
<button type="submit">Отправить</button>
</p>
</form>
<form>
<p>
<label for="age">Возраст: </label>
<input type="number" step="1" min="1" max="100" value="10" id="age" name="age"/>
</p>
<p>
<button type="submit">Отправить</button>
</p>
</form>
<form>
<p>
<label for="price">Цена: </label>
<input type="number" list="priceList"
step="1000" min="3000" max="100000" value="10000" id="price" name="price"/>
</p>
<p>
<button type="submit">Отправить</button>
</p>
</form>
<datalist id="priceList">
<option value="15000" />
<option value="20000" />
<option value="25000" />
</datalist>
<form>
<p>
<label for="price">Цена:</label>
1<input type="range" step="1" min="0" max="100" value="10" id="price" name="price"/>100
</p>
<p>
<button type="submit">Отправить</button>
</p>
</form>
<h2>Изучаемые технологии</h2>
<form>
<p>
<input type="checkbox" checked name="html5"/>HTML5
</p>
<p>
<input type="checkbox" name="dotnet"/>.NET
</p>
<p>
<input type="checkbox" name="java"/>Java
</p>
<p>
<button type="submit">Отправить</button>
</p>
</form>
<form>
<h2>Укажите пол</h2>
<p>
<input type="radio" value="man" checked name="gender"/>мужской
</p>
<p>
<input type="radio" value="woman" name="gender"/>женский
</p>
<h2>Выберите технологию</h2>
<p>
<input type="radio" value="html5" checked name="tech"/>HTML5
</p>
<p>
<input type="radio" value="net" name="tech"/>.NET
</p>
<p>
<input type="radio" value="java" name="tech"/>Java
</p>
<p>
<button type="submit">Отправить</button>
</p>
</form>
<label for="favcolor">Выберите цвет</label>
<input type="color" list="colors" id="favcolor" name="favcolor" />
<datalist id="colors">
<option value="#0000FF" label="blue">
<option value="#008000" label="green">
<option value="#ff0000" label="red">
</datalist>
<form>
<p>
<label for="email">Email: </label>
<input type="email" placeholder="[email protected]" id="email" name="email"/>
</p>
<p>
<label for="url">URL: </label>
<input type="url" id="url" name="url"/>
</p>
<p>
<label for="phone">Телефон: </label>
<input type="tel" placeholder="(XXX)-XXX-XXXX" id="phone" name="phone"/>
</p>
<p>
<button type="submit">Отправить</button>
</p>
</form>
<form>
<p>
<label for="week">Неделя: </label>
<input type="week" name="week" id="week" />
</p>
<p>
<label for="localdate">Дата и время: </label>
<input type="datetime-local" id="localdate" name="date"/>
</p>
<p>
<label for="month">Месяц: </label>
<input type="month" id="month" name="month"/>
</p>
<p>
<label for="time">Время: </label>
<input type="time" id="time" name="time"/>
</p>
<p>
<button type="submit">Отправить</button>
</p>
</form>
<form enctype="multipart/form-data" method="post" action="http://localhost:8080/postfile.php">
<p>
<input type="file" name="file" multiple />
</p>
<p>
<input type="submit" value="Отправить" />
</p>
</form>
<form method="get">
<p>
<label for="phone">Выберите модель:</label>
<select id="phone" name="phone">
<optgroup label="Apple">
<option value="iphone 6s">iPhone 6S</option>
<option value="iphone 6s plus">iPhone 6S Plus</option>
<option value="iphone 5se">iPhone 5SE</option>
</optgroup>
<optgroup label="Microsoft">
<option value="lumia 950">Lumia 950</option>
<option value="lumia 950 xl">Lumia 950 XL</option>
<option value="lumia 650">Lumia 650</option>
</optgroup>
</select>
</p>
<p>
<input type="submit" value="Отправить" />
</p>
</form>
<form method="get">
<p>
<label for="comment">Ваш комментарий:</label><br/>
<textarea id="comment" name="comment" placeholder="Написать комментарий"
cols="30" rows="7"></textarea>
</p>
<p>
<input type="submit" value="Добавить" />
</p>
</form>
<form method="get">
<p>
<label for="login">Логин:</label>
<input type="text" required id="login" name="login" />
</p>
<p>
<label for="password">Пароль:</label>
<input type="password" required id="password" name="password" />
</p>
<p>
<input type="submit" value="Отправить" />
</p>
</form>
<form method="get">
<p>
<label for="age">Возраст:</label>
<input type="number" min="1" max="100" value="18" id="age" name="age"/>
</p>
<p>
<input type="submit" value="Отправить" />
</p>
</form>
<form method="get">
<p>
<label for="phone">Телефон:</label>
<input type="text" placeholder="+1-234-567-8901"
pattern="\+\d-\d{3}-\d{3}-\d{4}" id="phone" name="phone" />
</p>
<p>
<input type="submit" value="Отправить" />
</p>
</form>
<h2>Вход на сайт</h2>
<form>
<fieldset>
<legend>Введите данные:</legend>
<label for="login">Логин:</label><br>
<input type="text" name="login" id="login" /><br>
<label for="password">Пароль:</label><br>
<input type="password" name="password" id="password" /><br>
<input type="submit" value="Авторизация">
</fieldset>
</form>
</body>
</html>