forked from kbalog/web-programming
-
Notifications
You must be signed in to change notification settings - Fork 1
/
form_controls.html
66 lines (50 loc) · 1.49 KB
/
form_controls.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
<!DOCTYPE html>
<html>
<head>
<title>Example: Form controls</title>
<style>
label textarea {
vertical-align: middle;
}
div.sep {
height: 10px;
}
</style>
</head>
<body>
<form action="">
<label>Name
<input type="text" name="name" size="20" placeholder="Firstname, lastname"/>
</label>
<div class="sep"></div>
<label>Quantity
<input type="number" name="points" size="3" min="0" max="100" step="10" value="30">
</label>
<div class="sep"></div>
<label>Email address
<input type="email" name="email" size="20" maxlength="35"/>
</label>
<div class="sep"></div>
<label>URL
<input type="url" name="myurl"/>
</label>
<div class="sep"></div>
<fieldset>
<legend>Delivery address</legend>
<label>City: <input type="text" name="city" size="10"/></label>
<label>Zip: <input type="text" name="zip" size="4"/></label>
<label>Street: <input type="text" name="street" size="20"/></label>
<label>House no: <input type="text" name="houseno" size="4"/></label>
</fieldset>
<div class="sep"></div>
<label>Comments
<textarea name="comment" cols="40" rows="3" placeholder="Feedback and suggestions are welcome"></textarea>
</label>
<div class="sep"></div>
<input type="submit" value="Submit"/>
<!--
<input type="image" src="images/next.jpg" width="100px" alt="Submit" />
-->
</form>
</body>
</html>