-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
78 lines (63 loc) · 3.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form Validation</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
</head>
<body>
<style>
body {
background: #642B73;
/* fallback for old browsers */
background: -webkit-linear-gradient(to right, #C6426E, #642B73);
/* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #C6426E, #642B73);
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
#form {
background-color: white;
border-radius: 5px;
padding: 20px;
margin-top: 5%;
}
</style>
<div class="row">
<div id='form' class="col-8 col-md-4 mx-auto">
<h3 id="form__head" class="mb-4 ">Registration Form</h3>
<form id="newform" action="#" class="needs-validation" novalidate>
<div class="form-group p-1">
<label for="username"> Username </label>
<input type="text" class="form-control" id="username" name="username" required />
<div class="invalid-feedback">username can`t username cannot be blank or have space</div>
<div class="valid-feedback">Looks Good</div>
</div>
<div class="form-group p-1">
<label for="email"> Email </label>
<input type="email" class="form-control" name="email" id="email" required />
<div id="email-validation" class="invalid-feedback">Please Check Mail again.</div>
</div>
<div class="form-group p-1">
<label for="password"> Password </label>
<input type="password" class="form-control" name="password" id="password" required />
<div class="invalid-feedback">Please make sure your password contains at least (a
Capital
letter, a number and a
special charcter).</div>
</div>
<button type="submit" class=" mt-4 d-block w-100 btn btn-primary">Submit</button>
</form>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF"
crossorigin="anonymous"></script>
<script src="app.js"></script>
</body>
</html>