-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (71 loc) · 3.07 KB
/
index.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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Regular Expressions</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<header class="header">
<img class="header__logo" src="https://pictures.s3.yandex.net/frontend-developer/dom_bom/logo.svg" alt="logo">
<p class="header__logo-sub">Регулярные выражения</p>
</header>
<main class="container">
<div class="cover">
<div class="cover__image"></div>
<h1 class="cover__heading">RegExp</h1>
</div>
<div class="block">
<form class="form" name="register" action="http://httpbin.org/post" method="POST">
<h3>Форма регистрации</h3>
<fieldset class="form__fieldset">
<div class="form__field">
<input
class="form__input"
type="text"
name="name"
pattern="([А-ЯЁ][а-яё]*(?![А-ЯЁ])-?)+[^-]"
minlength="2"
maxlength="20"
placeholder="Имя"
required />
</div>
<div class="form__field">
<input
class="form__input"
type="text"
name="email"
pattern="([0-9a-zA-Z]+-?\.?)+@([0-9a-zA-Z]+-?\.?)+\.[a-zA-Z]{2,}"
placeholder="E-Mail"
required />
<span class="form__error">e-mail в формате: students-yandex@yandex.ru</span>
</div>
<div class="form__field">
<input
class="form__input"
type="text"
name="tel"
placeholder="Телефон"
pattern="\+?\d[\(\- ]{0,2}\d{3}[\)\- ]{0,2}\d{3}(-?\d{2}){2}"
minlength=""
maxlength="18"
required/>
<span class="form__error">Недопустимый формат номера</span>
</div>
<div class="form__field">
<input
class="form__input"
type="text"
name="url"
pattern="https?:\/{2}(w{3}\.)?((\d{1,3}\.?){4}|([-a-z\d]+\.[a-z]{2,}))[:]?((?!0{1,5})\d{2,5})?(\/[-a-z\d]+)*[#\/]?"
placeholder="Ваш сайт"
required/>
<span class="form__error">URL в формате: http://mysite.ru</span>
</div>
<button class="form__button" type="text">Отправить</button>
</fieldset>
</form>
</div>
</main>
</body>
</html>