-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform.html
38 lines (28 loc) · 1.24 KB
/
form.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title> Form Validator </title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="./form.css">
</head>
<body>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-6 shadow p-3 mb-5 bg-white rounded">
<h1>Form Validation</h1>
<input type="text" name="" id="username" class="form-control" placeholder="Username">
<small id="username_error"></small>
<input type="text" name="" id="email" class="form-control" placeholder="E-mail">
<small id="email_error"></small>
<input type="text" name="" id="password" class="form-control" placeholder="Password">
<small id="password_error"></small>
<input type="text" name="" id="confirm_password" class="form-control" placeholder="Confirm Password">
<small id="confirm_password_error"></small>
<button class="btn btn-primary" onclick="validate()">Submit</button>
</div>
</div>
</div>
</body>
</html>
<script type="text/javascript" src="./form.js"></script>