-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (51 loc) · 2.26 KB
/
Copy pathindex.html
File metadata and controls
51 lines (51 loc) · 2.26 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form Validation</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<script defer src="index.js"></script>
</head>
<body>
<div class="container">
<form id="form" action="/">
<h1>Form Validation</h1>
<div class="input-control">
<label for="fullName">Full Name</label>
<input type="text" id="fullName" placeholder="Enter your full name" required>
<div class="error"></div>
</div>
<div class="input-control">
<label for="email">Email</label>
<input type="email" id="email" placeholder="Enter your email" required>
<div class="error"></div>
</div>
<div class="input-control">
<label for="phone">Phone Number</label>
<input type="text" id="phone" placeholder="Enter your phone number" required>
<div class="error"></div>
</div>
<div class="input-control">
<label for="username">Username</label>
<input type="text" id="username" placeholder="Enter your username" required>
<div class="error"></div>
</div>
<div class="input-control">
<label for="password">Password</label>
<input type="password" id="password" placeholder="Enter your password" required>
<div class="error"></div>
</div>
<div class="input-control">
<label for="confirmPassword">Confirm Password</label>
<input type="password" id="confirmPassword" placeholder="Confirm your password" required>
<div class="error"></div>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</body>
</html>