-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
111 lines (102 loc) · 3.22 KB
/
index.html
File metadata and controls
111 lines (102 loc) · 3.22 KB
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
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Registration Form</title>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/css/bootstrap.min.css"
rel="stylesheet"
/>
<style>
/* CSS Styles */
.error-message {
color: #dc3545;
font-size: 0.875rem;
margin-top: 0.25rem;
display: none;
}
.password-strength {
margin-top: 0.5rem;
font-size: 0.875rem;
}
.strength-weak {
color: #dc3545;
}
.strength-medium {
color: #ffc107;
}
.strength-strong {
color: #198754;
}
body {
background-color: #99edc3;
max-height: 100vh;
}
.form-container {
max-width: 600px;
margin: 4.25rem auto;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<div class="container">
<div class="form-container bg-white">
<h2 class="text-center mb-4">Registration Form</h2>
<form id="registrationForm" novalidate>
<!-- Full Name -->
<div class="mb-3">
<label for="fullName" class="form-label">Full Name*</label>
<input type="text" class="form-control" id="fullName" required />
<div class="error-message" id="fullNameError"></div>
</div>
<!-- Email -->
<div class="mb-3">
<label for="email" class="form-label">Email ID*</label>
<input type="email" class="form-control" id="email" required />
<div class="error-message" id="emailError"></div>
</div>
<!-- Phone -->
<div class="mb-3">
<label for="phone" class="form-label">Phone Number*</label>
<input type="tel" class="form-control" id="phone" required />
<div class="error-message" id="phoneError"></div>
</div>
<!-- Password -->
<div class="mb-3">
<label for="password" class="form-label">Password*</label>
<input
type="password"
class="form-control"
id="password"
required
/>
<div class="error-message" id="passwordError"></div>
<div class="password-strength" id="passwordStrength"></div>
</div>
<!-- Confirm Password -->
<div class="mb-3">
<label for="confirmPassword" class="form-label"
>Confirm Password*</label
>
<input
type="password"
class="form-control"
id="confirmPassword"
required
/>
<div class="error-message" id="confirmPasswordError"></div>
</div>
<!-- Submit Button -->
<button type="submit" id="submit" class="btn btn-primary w-100">
Register
</button>
</form>
</div>
</div>
<script src="script.js"></script>
</body>
</html>