-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathform_elements.html
More file actions
89 lines (66 loc) · 2.38 KB
/
form_elements.html
File metadata and controls
89 lines (66 loc) · 2.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
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
<!DOCTYPE html>
<html>
<head>
<title>Html form</title>
<link rel='stylesheet' href='dist/css/bootstrap.css'>
</head>
<body>
<div class='container'>
<h1>An example form</h1>
<form>
<legend>Text fields</legend>
<label>Name</label>
<input type="text" name='user-name'>
<label>Email</label>
<input type="text" name='user-email'>
<legend>Text area</legend>
<label>Please leave us some comments:</label>
<textarea name='comments' rows="3"></textarea>
<legend>Passwords</legend>
<label>Password</label>
<input type="password" name='user-password'>
<legend>Radio buttons</legend>
<!-- radio buttons -->
<label class='radio'>
<input type='radio' name='laptop-type' value='windows'>
Windows
</label>
<label class='radio'>
<input type='radio' name='laptop-type' value='mac'>
Mac</label>
<label class='radio'>
<input type='radio' name='laptop-type' value='linux'>
Linux</label>
<legend>Check boxes</legend>
<!-- checkboxes -->
<label class='checkbox'>
<input type='checkbox' name='languages-known' value='html'>
HTML</label>
<label class='checkbox'>
<input type='checkbox' name='languages-known' value='css'>
CSS</label>
<label class='checkbox'>
<input type='checkbox' name='languages-known' value='ruby'>
ruby</label>
<label class='checkbox'>
<input type='checkbox' name='languages-known' value='javascript'>
javascript</label>
<legend>Select boxes</legend>
<select name='fruits'>
<option value='banana'>banana</option>
<option value='apple'>apple</option>
<option value='pear'>pear</option>
<option value='tomato'>tomato</option>
</select>
<legend>Other options</legend>
<label>Colour</label>
<input type='color'>
<label>Date</label>
<input type='date'>
<label>Time</label>
<input type='time'>
<input type="submit">
</form>
</div>
</body>
</html>