-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (97 loc) · 2.74 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Form Validation</title>
<link rel="icon" type="image/png" href="favicon-r.png" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="container">
<h1>Sign Up Today</h1>
<!-- Form -->
<form id="form">
<!-- Full Name -->
<div class="form-group">
<label for="name">Full Name</label>
<input
type="text"
id="name"
placeholder="Full Name"
name="name"
required
minlength="3"
maxlength="100"
/>
</div>
<!-- Phone Number -->
<div class="form-group">
<label for="phone">Phone Number</label>
<input
type="tel"
id="phone"
placeholder="555-555-5555"
name="phone"
required
pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}"
/>
</div>
<!-- Email -->
<div class="form-group">
<label for="email">Email Address</label>
<input
type="email"
id="email"
placeholder="email@address.com"
name="email"
required
/>
</div>
<!-- Website URL -->
<div class="form-group">
<label for="website">Website URL</label>
<input
type="url"
id="website"
name="website"
placeholder="https://russperry.dev"
required
/>
</div>
<!-- Password -->
<div class="form-group">
<label for="password1">Password</label>
<input
type="password"
id="password1"
placeholder="Create Password (Minimum 8 characters)"
required
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}$"
title="Please enter at least 1 captial letter, 1 lowercase letter, and 1 number."
/>
</div>
<!-- Confirm Password -->
<div class="form-group">
<label for="password2">Confirm Password</label>
<input
type="password"
id="password2"
name="password"
placeholder="Confirm Password"
required
pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}$"
/>
</div>
<button type="submit">Register</button>
</form>
<!-- Error / Success Message -->
<div class="message-container">
<h3 id="message">
Don't Hesitate!
</h3>
</div>
</div>
<script src="app.js"></script>
</body>
</html>