-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.html
More file actions
48 lines (41 loc) · 2.18 KB
/
form.html
File metadata and controls
48 lines (41 loc) · 2.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="container">
<h1 class="bg-secondary">Form validation : </h1>
<form action="#" class="was-validated">
<div class="mb-3 mt-3">
<label for="uname" class="form-label">Username :</label>
<input type="text" class="form-control" id="uname" palceholer="Enter Username" name="uname" required>
<div class="valid-feedback">Correct</div>
<div class="invalid-feedback">Please fill out this feild.</div>
</div>
<div class="mb-3 mt-3">
<label for="pwd" class="form-label">Password :</label>
<input type="password" class="form-control" id="pwd" palceholer="Enter password" name="pwd" required>
<div class="valid-feedback">Correct</div>
<div class="invalid-feedback">Please fill out this feild.</div>
</div>
<div class="form-check mb-3">
<input type="checkbox" class="form-check-input" id="myCheck" name="remember" required>
<label for="myCheck" class="form-check-label">I agree on blabla.</label>
<div class="valid-feedback">valid</div>
<div class="invalid-feedback">Check this checkbox to continue.</div>
</div>
<button type="submit" class="btn btn-primary"> Submit</button>
</div>
</form>
</div>
</body>
</html>