-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
102 lines (87 loc) · 2.83 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
98
99
100
101
102
<!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" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="icomoon/style.css">
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v6.0.0/css/all.css"
/>
<title>learn JavaScript slider</title>
</head>
<body>
<h1 class="title">JavaScript Validation Form</h1>
<section>
<h1> validation form</h1>
<div class="par-Btn"><button id="mainbtn" >Create An Account</button></div>
<div class="parent-of-form">
<form id="form" action="action_page.php">
<div style="position: relative" class="form-container">
<h2 style="text-align: center">Create Account</h2>
<div id="close">✖</div>
<div class="papa">
<label for="username"><b>Username</b></label>
<input
id="username"
type="text"
placeholder="Enter Username"
name="email"
required
/>
<div class="icon-check-circle"></div>
<p id="usermassage">at least 3 character</p>
</div>
<div class="papa">
<label for="email"><b>Email</b></label>
<input
id="email"
type="email"
placeholder="Enter Email"
name="email"
required
/>
<div class="icon-check-circle"></div>
<p id="emailMassage">Please enter a correct email address</p>
</div>
<div class="papa">
<label for="psw"><b>Password</b></label>
<input
type="password"
placeholder="Enter Password"
name="psw"
id="psw"
required
/>
<div class="icon-check-circle"></div>
<p id="pswMassage">
Password must be at least 8 characters with 1 upper case
letter and 1 number.
</p>
</div>
<div class="papa">
<label for="psw-repeat"><b>Repeat Password</b></label>
<input
type="password"
placeholder="Repeat Password"
name="psw-repeat"
id="psw-repeat"
required
/>
<div class="icon-check-circle"></div>
<p id="RepeatMass">Please make sure your passwords match</p>
</div>
<button disabled id="regbtn" type="submit" class="registerbtn">Create Account</button>
</div>
</form>
</div>
</section>
<script src="main.js"></script>
<script
defer
src="https://use.fontawesome.com/releases/v6.0.0/js/all.js"
></script>
</body>
</html>