-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (39 loc) · 2.13 KB
/
index.html
File metadata and controls
40 lines (39 loc) · 2.13 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
<!doctype html>
<html lang="ru">
<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">
<link rel="stylesheet" href="style.css">
<title>Валидация формы</title>
</head>
<body>
<form action="/submit" method="post" class="form">
<h1 class="form__title">Форма авторизации</h1>
<input class="form__input form__first-name" type="text" placeholder="Имя" name="firstname" required>
<input class="form__input form__last-name" type="text" placeholder="Фамилия" name="lastname" required>
<input class="form__input form__email" type="email" placeholder="Почта" name="email" required>
<input class="form__input form__password" maxlength="30" type="password" name="password" placeholder="Пароль"
required>
<input class="form__input form__password-confirm" maxlength="30" type="password" name="confirmpassword"
placeholder="Повтор пароля" required>
<div class="form__phone-group">
<label for="form-phone" class="form__label">Номер телефона</label>
<div class="form__phone-wrapper">
<input type="text" id="form-phone" class="form__input form__phone" name="phone" placeholder="Номер телефона"
required>
<button aria-label="Запросить смс код на номер телефона" type="button" class="form__phone-button">Код
</button>
</div>
</div>
<label for="form-terms" class="form__label form__terms-label">
<input type="checkbox" id="form-terms" class="form__terms" name="terms" required>
При авторизации вы соглашаетесь с <a class="form__terms-link" href="#" target="_blank">политикой использования</a>
</label>
<p class="form__message"></p>
<button aria-label="Завершить авторизацию" type="submit" class="form__submit">Зарегестрироваться</button>
</form>
<script src="app.js"></script>
</body>
</html>