-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
47 lines (46 loc) · 2.05 KB
/
Copy pathindex.html
File metadata and controls
47 lines (46 loc) · 2.05 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
<!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="shortcut icon" href="registration-form.png" type="image/x-icon">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css">
<title>Form Validation</title>
</head>
<body>
<div class="h-100 d-flex align-items-center justify-content-center">
<h1 class="heading">Form Validation</h1>
</div>
<section class="form-container">
<form>
<div class="form-group">
<label for="name">Full Name</label><br>
<input type="text" id="name" class="input-field" required>
</div><br>
<div class="form-group">
<label for="email">Email ID</label><br>
<input type="email" id="email" class="input-field" required>
</div><br>
<div class="form-group">
<label for="phone">Phone No.</label><br>
<input type="number" id="phone" class="input-field" required>
</div><br>
<div class="form-group">
<label for="password">Password</label><br>
<input type="password" id="password" class="input-field" required><br>
<input type="checkbox" onclick="showPassword()" class="show-pass">Show Password
</div><br>
<div class="form-group">
<label for="confirm-pass">Confirm Password</label><br>
<input type="password" id="confirm-pass" class="input-field" required><br>
<input type="checkbox" onclick="showPasswordConfirm()" class="show-pass">Show Password
</div><br>
<input type="submit" value="Submit" onclick="validateForm()" class="input-field">
</form>
</section>
</body>
<script src="script.js"></script>
</html>