-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpass.html
29 lines (28 loc) · 1.14 KB
/
pass.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Password Validation</title>
<link rel="stylesheet" type="text/css" href="pass.css">
</head>
<body>
<form>
<div class="container">
<label for="user">Username</label>
<input type="text"id="user"name="Username"required>
<label for="pass">Password</label>
<input type="password"id="pass"name="Password"pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}"title="Must contain atleast one number and one uppercase and lowercase letter, and atleast 8 or more characters"required>
<input type="submit"value="Submit">
</form>
</div>
<div id="message">
<h3>Password must contain the following</h3>
<p id="letter" class="invalid">A <b> lowercase</b> letter </p>
<p id="capital" class="invalid">A <b> uppercase</b> letter </p>
<p id="number" class="invalid">A <b> number</b> </p>
<p id="length" class="invalid">Minimum <b>8 characters</b></p>
</div>
<script src="pass.js"></script>
</body>
</html>