-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (47 loc) · 1.75 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>RegEx Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>New User Signup</h1>
<form>
<div class="form">
<input type="text" name="username" placeholder="username">
</div>
<div class="form-hint">
<p>Username must be and contain 5 - 12 characters</p>
</div>
<div class="form">
<input type="text" name="email" placeholder="email">
</div>
<div class="form-hint">
<p>Email must be a valid address, e.g. [email protected]</p>
</div>
<div class="form">
<input type="password" name="password" placeholder="password">
</div>
<div class="form-hint">
<p>Password must alphanumeric (@, _ and - are also allowed) and be 8 - 20 characters</p>
</div>
<div class="form">
<input type="text" name="telephone" placeholder="telephone">
</div>
<div class="form-hint">
<p>Telephone must be a valid UK telephone number (11 digits)</p>
</div>
<div class="form">
<input type="text" name="slug" placeholder="profile slug">
</div>
<div class="form-hint">
<p>Slug must contain only lowercase letters, numbers and hyphens and be 8 - 20 characters</p>
</div>
<div class="submit-div">
<button class="submit-button">Submit</button>
</div>
</form>
<script type="text/javascript" src="validation.js"></script>
</body>
</html>