-
Notifications
You must be signed in to change notification settings - Fork 609
Expand file tree
/
Copy pathindex.html
More file actions
193 lines (178 loc) · 4.48 KB
/
index.html
File metadata and controls
193 lines (178 loc) · 4.48 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>HTML Form</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<script type="text/javascript" src="./main.js"></script>
<form
action="https://mate-academy-form-lesson.herokuapp.com/create-application"
method="post">
<fieldset class="container">
<legend>Personal information</legend>
<label for="surname">Surname:</label>
<input
class="form_group"
type="text"
id="surname"
name="surname"
autocomplete="off"
>
<br>
<label for="name">Name:</label>
<input
class="form_group"
type="text"
id="name"
name="name"
autocomplete="off"
>
<br>
<label for="age">How old are You?</label>
<input
class="form_group"
type="number"
id="age"
name="age"
value="12"
min="1"
max="100"
>
<br>
<label for="date">Full date of birth:</label>
<input
class="form_group"
type="date"
id="date"
name="date"
>
<br>
<label for="box">I accept the term of the agreement</label>
<input
type="checkbox"
id="box"
name="box"
>
<br>
</fieldset>
<fieldset class="container">
<legend>Registration</legend>
<label for="adress">E-mail:</label>
<input
type="email"
id="adress"
class="form_group"
name="adress"
placeholder="email@example.com"
>
<br>
<label for="secret">Password:</label>
<input
type="password"
id="secret"
name="secret"
required
autocomplete="off"
minlength="8"
maxlength="15"
>
</fieldset>
<fieldset class="container">
<legend>An interesting fact about you!</legend>
<div class="form_group">
<label for="cat">Do you love cats?</label>
<label>
<input
id="yes"
type="radio"
name="pet"
value="yes"
>
Yes
</label>
<label>
<input
id="no"
type="radio"
name="pet"
value="No"
>
No
</label>
</div>
<div class="form_group">
<label for="color">What is your favorite color?</label>
<input
type="color"
id="color"
name="color"
>
</div>
<div class="form_group">
<label for="time">What time do you go to bed?</label>
<input
type="time"
id="time"
name="time"
>
</div>
<div class="form_group">
<label for="brand">What are your favorite brand of cars?</label>
<select
name="car"
id="brand"
required
multiple
>
<option value="BMW">BMW</option>
<option value="Audi">Audi</option>
<option value="Lada">Lada</option>
</select>
</div>
<div>
<label for="review">How do you rate our work?</label>
<input
type="range"
id="review"
name="rating"
step="1"
value="0"
min="0"
max="5"
>
</div>
</fieldset>
<fieldset class="container">
<legend>Additional info</legend>
<div class="form-block">
<label for="comments">Comments:</label>
<textarea
name="write"
id="comments"
autocomplete="off"
required
></textarea>
</div>
<label for="approve">Would you recommend us?</label>
<select
name="answer"
id="approve"
required
>
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
</fieldset>
<button type="submit">
Submit
</button>
</form>
</body>
</html>