Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (26 loc) · 1.38 KB
/
Copy pathindex.html
File metadata and controls
38 lines (26 loc) · 1.38 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
<html>
<head>
<title>Form validation</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<link href="stylesheet" rel="./style.css">
</head>
<body>
<div class="container">
<div class="row justify-content-center ">
<div class="col-md-5 shadow-lg p-3 mb-5 bg-white rounded ">
<h1>Form validation </h1>
<input type="text" id="username" class="form-control" placeholder="username">
<small id="username_error"></small>
<input type="text" id="email" class="form-control" placeholder="email">
<small id="email_error"></small>
<input type="text" id="password" class="form-control" placeholder="password">
<small id="password_error"></small>
<input type="text" id="cpassword" class="form-control" placeholder="cpassword">
<small id="cpassword_error"></small>
<button class="btn btn-primary" onclick="validate()">SUBMIT</button>
</div>
</div>
</div>
</body>
</html>
<script src="./index.js"></script>