-
Notifications
You must be signed in to change notification settings - Fork 0
/
lab6.ex1.ex7.text.html
79 lines (75 loc) · 3.21 KB
/
lab6.ex1.ex7.text.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
<!DOCTYPE html>
<html>
<head>
<title>Test form</title>
</head>
<body>
<p>Основные элементы форм:</p>
<form action = "lab6.ex1.ex7.text.html" method = "POST" enctype = "multipart/form-data">
Простое текстовое поле: <input type = "text" name = "txtField" /><br />
Поле длинной максимум 5 символов: <input type = "text" name = "txtField" maxlength = “5” /><br />
Многострочное текстовое поле: <textarea name = "txtArea">This is a text area</textarea><br/>
Поле для ввода пароля: <input type = "password" name = "psw" /><br />
Скрытое поле: <input type = "hidden" name = "hdnTxt"></br>
<input type = "submit" name = "submit" value = "Отправить!" />
</form>
<br/>
<form>
Работа с цветом:<input type = "color" name = "color"/><br/>
Работа с датой:<input type = "date" name = "date"/><br/>
Проверка e-mail:<input type = "email" name = "mail"/><br/>
Проверка чисел:<input type = "number" name = "num"/><br/>
Работа с днем недели:<input type = "week" name = "week"/><br/>
Проверка URL:<input type = "url" name = "url"/><br/>
<input type = "submit" name = "submit" value = "Отправить!" />
</form>
<br/>
<form>
Введите данные:<input type = "text" name = "txt"><br/>
<input type = "reset" name = "reset" value = "Очистить поле!" /><br />
<input type = "submit" name = "submit" value = "Отправить!" /><br />
<button name = "myButton">
<img src = "C:\Users\kasyu\Desktop\ИТМО\HTML and XML\Материалы\images\enot.jpg" title = "This is a button too">
</button>
</form>
<br/>
<form>
<p><input type = "radio" name = "MyRadio" value = "First">First Variant</p>
<p><input type = "radio" name = "MyRadio" value = "Second">Second Variant</p>
<p><input type = "radio" name = "MyRadio" value = "Third">Third Variant</p>
<p><input type = "submit" name = "submit">
</form>
<br/>
<form>
<p><input type = "checkbox" name = "MyChckBx[]" value = "First">First Variant</p>
<p><input type = "checkbox" name = "MyChckBx[]" value = "Second">Second Variant</p>
<p><input type = "checkbox" name = "MyChckBx[]" value = "Third">Third Variant</p>
<p><input type = "submit" name = "submit">
</form>
<br/>
<form>
<select name = "cars" size = "1">
<optgroup label = "Ford">
<option value = "F">Focus</option>
<option value = "M">Mondeo</option>
<option value = "K">Kuga</option>
</optgroup>
<optgroup label = "Volkswagen">
<option value = "G">Golf</option>
<option value = "B">Beetle</option>
<option value = "P">Passat</option>
</optgroup>
<optgroup label = "Chevrolet">
<option value = "Cr">Cruze</option>
<option value = "Cam">Camaro</option>
<option value = "Cor">Corvette</option>
</optgroup>
</select>
<input type = “submit” name = “submit” />
</form>
<br/>
<form>
<input type = "file" name = "files" multiple>
</form>
</body>
</html>