-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
161 lines (132 loc) · 6.15 KB
/
index.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Registration Form</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Heading-->
<div class="container-fluid col-md-6">
<h1 class="display-3 text-center title">Registration Form</h1>
<form class="row g-3 registration-form">
<!--First Name-->
<div class="col-md-6">
<label for="first-name" class="form-label">First name</label>
<input type="text" class="form-control" id="first-name" autocomplete="off">
<!--Positive feedback-->
<div class="valid-feedback" id="first-name-valid">
Looks good!
</div>
<!--Negative feedback-->
<div class="invalid-feedback" id="first-name-invalid">
Please enter a valid first name.
</div>
</div>
<!--Last Name-->
<div class="col-md-6">
<label for="last-name" class="form-label">Last name</label>
<input type="text" class="form-control" id="last-name" autocomplete="off">
<!--Positive feedback-->
<div class="valid-feedback" id="last-name-valid">
Looks good!
</div>
<!--Negative feedback-->
<div class="invalid-feedback" id="last-name-invalid">
Please enter a valid last name.
</div>
</div>
<!--Email section-->
<div class="col-md-6">
<label for="email" class="form-label">Email</label>
<div class="input-group has-validation">
<span class="input-group-text" id="inputGroupPrepend">@</span>
<input type="text" class="form-control" id="email" aria-describedby="inputGroupPrepend" autocomplete="off">
<!--Positive feedback-->
<div class="valid-feedback" id="email-valid">
Looks good!
</div>
<!--Negative feedback-->
<div class="invalid-feedback" id="email-invalid">
Please enter a valid email.
</div>
</div>
</div>
<!--Phone number-->
<div class="col-md-6">
<label for="phone-no" class="form-label">Phone Number</label>
<div class="input-group has-validation">
<span class="input-group-text" id="inputGroupPrepend">+91</span>
<input type="text" class="form-control" id="phone-no" aria-describedby="inputGroupPrepend" autocomplete="off">
<!--Positive feedback-->
<div class="valid-feedback" id="phn-valid">
Looks good!
</div>
<!--Negative feedback-->
<div class="invalid-feedback" id="phn-invalid">
Please provide a valid phone number.
</div>
</div>
</div>
<!-- Batch No-->
<div class="col-md-6">
<label for="batch" class="form-label">Batch No</label>
<select class="form-select" id="batch">
<option selected="" value="None">Select Batch No ...</option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
<!--Positive feedback-->
<div class="valid-feedback" id="batch-valid">
Looks good!
</div>
<!--Negative feedback-->
<div class="invalid-feedback" id="batch-invalid">
Please select a valid Batch No.
</div>
</div>
<!--Module No-->
<div class="col-md-6">
<label for="module" class="form-label">Current Module</label>
<select class="form-select" id="module">
<option selected="" value="None">Select Current Module ...</option>
<option>5</option>
<option>6</option>
<option>7</option>
</select>
<!--Positive feedback-->
<div class="valid-feedback" id="module-valid">
Looks good!
</div>
<!--Negative feedback-->
<div class="invalid-feedback" id="module-invalid">
Please select a valid Module No.
</div>
</div>
<!--Terms & Conditions-->
<div class="col-12">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="tnC">
<label class="form-check-label" for="tnC">
Agree to terms and conditions
</label>
<!-- Negative Response -->
<div class="invalid-feedback" id="tnC-invalid">
You must agree before submitting.
</div>
</div>
</div>
<!--Submit button-->
<div class="col-12 submit-btn ">
<button class="btn btn-dark" type="button" onclick="validate()">Submit form</button>
</div>
</form>
</div>
<script src="script.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.5/dist/umd/popper.min.js" integrity="sha384-Xe+8cL9oJa6tN/veChSP7q+mnSPaj5Bcu9mPX5F5xIGE0DVittaqT5lorf0EI7Vk" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.min.js" integrity="sha384-ODmDIVzN+pFdexxHEHFBQH3/9/vQ9uori45z4JjnFsRydbmQbmL5t1tQ0culUzyK" crossorigin="anonymous"></script>
</body>
</html>