-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforms.html
162 lines (148 loc) · 7.22 KB
/
forms.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
162
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
</head>
<body>
<div class="container">
<h1>Basic Form</h1>
<form >
<div class="mb-4">
<label for="emailinput" class="form-label">Email</label>
<input type="email" class="form-control" id="emailinput">
</div>
<div class="mb-4">
<label for="passwordinput" class="form-label">password</label>
<input type="password" class="form-control" id="passwordinput">
</div>
<!-- <div class="form-floating col-md-4">
<input type="email" class="form-control" id="emailinput">
<label for="emailinput" class="form-label">Email</label>
</div> -->
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="rememberMe">
<label for="rememberMe" class="form-check-label">Remember me</label>
</div>
<button type="submit" class="btn btn-primary">Login</button>
</form>
<h3>Grid based Form</h3>
<form >
<div class="row">
<div class="col"> <!--col-md-6 -->
<label for="emailinput" class="form-label">Email</label>
<input type="email" class="form-control" id="emailinput">
</div>
<div class="col">
<label for="passwordinput" class="form-label">password</label>
<input type="password" class="form-control" id="passwordinput">
</div>
</div>
<!-- <div class="form-floating col-md-4">
<input type="email" class="form-control" id="emailinput">
<label for="emailinput" class="form-label">Email</label>
</div> -->
<!-- <div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="rememberMe">
<label for="rememberMe" class="form-check-label">Remember me</label>
</div> -->
<button type="submit" class="btn btn-primary mt-3">Login</button>
</form>
<h3>Sizing the Components through Grid based Form</h3>
<form >
<div class="row" >
<div class="col-sm-8">
<label for="emailinput" class="form-label">Email</label>
<input type="email" class="form-control" id="emailinput">
</div>
<div class="col-sm-4">
<label for="passwordinput" class="form-label">password</label>
<input type="password" class="form-control" id="passwordinput">
</div>
</div>
<!-- <div class="form-floating col-md-4">
<input type="email" class="form-control" id="emailinput">
<label for="emailinput" class="form-label">Email</label>
</div> -->
<!-- <div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="rememberMe">
<label for="rememberMe" class="form-check-label">Remember me</label>
</div> -->
<button type="submit" class="btn btn-primary mt-3">Login</button>
</form>
<h3>Using Floating Labels </h3>
<form >
<div class="row" >
<div class="col-sm-8 form-floating">
<input type="email" class="form-control" id="emailinput" placeholder="email">
<label for="emailinput" class="form-label">Email</label>
</div>
<div class="col-sm-4 form-floating">
<input type="password" class="form-control" id="passwordinput" placeholder="password">
<label for="passwordinput" class="form-label">password</label>
</div>
</div>
<!-- <div class="form-floating col-md-4">
<input type="email" class="form-control" id="emailinput">
<label for="emailinput" class="form-label">Email</label>
</div> -->
<!-- <div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="rememberMe">
<label for="rememberMe" class="form-check-label">Remember me</label>
</div> -->
<button type="submit" class="btn btn-primary mt-3">Login</button>
</form>
<h3>Form components</h3>
<form>
<div class="mb-3">
<label for="emailinput" class="form-label">Email</label>
<input type="email" class="form-control form-control-lg" id="emailinput">
</div>
<div class="mb-3">
<label for="commentTextArea" class="form-label">Comments</label>
<textarea class="form-control" rows="3" id="commentTextArea"></textarea>
</div>
<div class="mb-3">
<label for="uploadFile" class="form-label">Upload a Picture</label>
<input type="file" id="uploadFile" class="form-control">
</div>
<div class="mb-3">
<label for="sizeSelect" class="form-label">Select Size</label>
<select class="form-select" id="sizeSelect">
<option selected>Choose an option</option>
<option value="1">small</option>
<option value="2">Medium</option>
<option value="3">Big</option>
</select>
</div>
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="rememberMe">
<label for="rememberMe" class="form-check-label">Remember me</label>
</div>
<div class="mb-3">
<label for="rngselect" class="form-label"></label>
<input type="range" class="form-range" id="rngselect">
</div>
<div class="mb-3 form-check form-switch">
<input type="checkbox" class="form-check-input" id="remembernum">
<label for="remembernum" class="form-check-label">savenumber</label>
</div>
<div class="mb-3">
<input type="checkbox" class="btn-check" id="usepoints" autocomplete="off" checked>
<label for="usepoints" class="btn btn-primary">Use my Points</label>
</div>
<div class="mb-3">
<label for="username" class="form-label">User name</label>
<div class="input-group">
<span class="input-group-text">@</span>
<input type="text" class="form-control" id="username">
</div>
</div>
</div>
</form>
</div>
</body>
</html>