-
Notifications
You must be signed in to change notification settings - Fork 3
/
input.html
95 lines (66 loc) · 1.65 KB
/
input.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Input</title>
<meta name="robots" content="noindex, nofollow">
<style type="text/css">
body {
font-family: arial, sans-serif;
line-height: 2;
padding: 1% 5%;
}
</style>
</head>
<body>
<h1>Input element</h1>
<form>
<fieldset>
<legend>1: Explicit label</legend>
<label for="input-ext-first">Your first name</label>
<input type="text" id="input-ext-first" name="your-first-name">
<br />
<label for="input-ext-middle">Your middle name</label>
<input type="text" id="input-ext-middle" name="your-middle-name">
<br />
<label for="input-ext-last">Your last name</label>
<input type="text" id="input-ext-last" name="your-last-name">
</fieldset>
<fieldset>
<legend>2: Implicit label without for/id relation</legend>
<label>
<input type="text" name="your-first-name">
Your first name
</label>
<br />
<label>
<input type="text" name="your-middle-name">
Your middle name
</label>
<br />
<label>
<input type="text" name="your-last-name">
Your last name
</label>
</fieldset>
<fieldset>
<legend>3: Implicit label with for/id relation</legend>
<label for="input-ext-first3">
<input type="text" id="input-ext-first3" name="your-first-name">
Your first name
</label>
<br />
<label for="input-ext-middle3">
<input type="text" id="input-ext-middle3" name="your-middle-name">
Your middle name
</label>
<br />
<label for="input-ext-last3">
<input type="text" id="input-ext-last3" name="your-last-name">
Your last name
</label>
</fieldset>
</form>
<a href="index.html">Back to overview page</a>
</body>
</html>