Bbootstrap
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="../css/bootstrap.css">
<title>belajar form</title>
</head>
<body>
<div class="container">
<h2>dasar penggunaan form pada bootstrap</h2>
<form role="form">
<div class="form-group">
<label for="email">Email :</label>
<input type="email" class="form-control" id="email" placeholder="enter email here">
</div>
<div class="form-group">
<label for="password">Password : </label>
<input type="password" class="form-control" id="pass" placeholder="enter password here">
</div>
<div class="checkbox">
<label><input type="checkbox"> Remember me </label>
</div>
<button type="submit" class="btn btn-info">Submit</button>
</form>
<h2>Kita dapat membuat form berbentuk inline, atau horizontal</h2>
<h3>contoh inline</h3>
<form role="form" class="form-inline">
<div class="form-group">
<label for="email">Email : </label>
<input type="email" class="form-control" id="email" placeholder="enter email here">
</div>
<div class="form-group">
<label for="password">Password : </label>
<input type="password" class="form-control" id="pass" placeholder="enter password here">
</div>
<div class="checkbox">
<label><input type="checkbox"> Remember me </label>
</div>
<button type="button" class="btn btn-info">Submit</button>
</form>
<h3>contoh horizontal</h3>
<form role="form" class="form-horizontal">
<div class="form-group">
<label for="email" class="col-md-2">Email : </label>
<div class="col-md-10">
<input type="email" class="form-control" id="email" placeholder="enter email here">
</div>
</div>
<div class="form-group">
<label for="password" class="col-md-2">Password : </label>
<div class="col-md-10">
<input type="password" class="form-control" id="pass" placeholder="enter password here">
</div>
</div>
<div class="form-group">
<div class="checkbox col-md-offset-2 col-md-10">
<label><input type="checkbox"> Remember me</label>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<button type="button" class="btn btn-info">Submit</button>
</div>
</div>
</form>
</div>
</body>
</html>
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="../css/bootstrap.css">
<title>belajar form</title>
</head>
<body>
<div class="container">
<h2>dasar penggunaan form pada bootstrap</h2>
<form role="form">
<div class="form-group">
<label for="email">Email :</label>
<input type="email" class="form-control" id="email" placeholder="enter email here">
</div>
<div class="form-group">
<label for="password">Password : </label>
<input type="password" class="form-control" id="pass" placeholder="enter password here">
</div>
<div class="checkbox">
<label><input type="checkbox"> Remember me </label>
</div>
<button type="submit" class="btn btn-info">Submit</button>
</form>
<h2>Kita dapat membuat form berbentuk inline, atau horizontal</h2>
<h3>contoh inline</h3>
<form role="form" class="form-inline">
<div class="form-group">
<label for="email">Email : </label>
<input type="email" class="form-control" id="email" placeholder="enter email here">
</div>
<div class="form-group">
<label for="password">Password : </label>
<input type="password" class="form-control" id="pass" placeholder="enter password here">
</div>
<div class="checkbox">
<label><input type="checkbox"> Remember me </label>
</div>
<button type="button" class="btn btn-info">Submit</button>
</form>
<h3>contoh horizontal</h3>
<form role="form" class="form-horizontal">
<div class="form-group">
<label for="email" class="col-md-2">Email : </label>
<div class="col-md-10">
<input type="email" class="form-control" id="email" placeholder="enter email here">
</div>
</div>
<div class="form-group">
<label for="password" class="col-md-2">Password : </label>
<div class="col-md-10">
<input type="password" class="form-control" id="pass" placeholder="enter password here">
</div>
</div>
<div class="form-group">
<div class="checkbox col-md-offset-2 col-md-10">
<label><input type="checkbox"> Remember me</label>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<button type="button" class="btn btn-info">Submit</button>
</div>
</div>
</form>
</div>
</body>
</html>
Komentar
Posting Komentar