-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForm.html
More file actions
37 lines (36 loc) · 1.26 KB
/
Copy pathForm.html
File metadata and controls
37 lines (36 loc) · 1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form Validation using JavaScript</title>
<link rel="stylesheet" href="/form.css">
</head>
<body>
<form id="registrationForm">
<h1>Registration Form</h1>
<div class="form-group">
<label for="username">Username:</label>
<input type="text" id="username" name="username">
<small>Error message</small>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email">
<small>Error message</small>
</div>
<div class="form-group">
<label for="password">Password:</label>
<input type="password" id="password" name="password">
<small>Error message</small>
</div>
<div class="form-group">
<label for="confirmPassword">Confirm Password:</label>
<input type="password" id="confirmPassword" name="confirmPassword">
<small>Error message</small>
</div>
<button type="submit">Register</button>
</form>
<script src="/FormValidation.js"></script>
</body>
</html>