-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput-types.html
More file actions
138 lines (138 loc) · 4.33 KB
/
input-types.html
File metadata and controls
138 lines (138 loc) · 4.33 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
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
<!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>Input Types</title>
</head>
<body>
<form action="">
<h1>Buttons</h1>
<input type="button" value="Hello" />
<br />
<h1>Check Boxes</h1>
<input type="checkbox" name="vehicle1" id="vehicle1" value="car" />
<label for="vehicle1">Car</label>
<input type="checkbox" name="vehicle2" id="vehicle2" value="bike" />
<label for="vehicle2">Bike</label>
<input type="checkbox" name="vehicle3" id="vehicle3" value="boat" />
<label for="vehicle3">Boat</label>
<br />
<h1>Color</h1>
<input type="color" name="color" id="color" />
<br />
<h1>Date</h1>
<input type="date" name="date" id="date" />
<label for="date">Select Date</label>
<br />
<h1>Datetime-local</h1>
<input type="datetime-local" name="datetimelocal" id="datetimelocal" />
<label for="datetimelocal">Select Date Time</label>
<br />
<h1>Email</h1>
<label for="email">Enter Your Email</label>
<input type="email" name="email" id="email" />
<br />
<h1>File</h1>
<label for="file">Select Your File</label>
<input type="file" name="file" id="file" multiple />
<br />
<h1>Hidden</h1>
<label for="hidden">Hidden</label>
<input type="hidden" name="hidden" id="hidden" />
<br />
<h1>Image</h1>
<label for="image">Select Image</label>
<input type="image" name="image" id="image" />
<br />
<h1>Month</h1>
<input type="month" name="month" id="month" />
<label for="month">Select Month</label>
<br />
<h1>Number</h1>
<input
type="number"
name="number"
id="number"
step="5"
min="0"
max="50"
/>
<label for="number">Select Number</label>
<br />
<h1>Password</h1>
<input type="password" name="password" id="password" />
<label for="password">Enter Your Password</label>
<br />
<h1>Radio</h1>
<input type="radio" name="gender" id="male" value="male" checked />
<label for="male">Male</label>
<input type="radio" name="gender" id="female" value="female" />
<label for="female">Female</label>
<br />
<h1>Range</h1>
<input
type="range"
name="range-value"
id="range-value"
min="0"
max="10"
/>
<label for="range-value">Select a Range Value</label>
<br />
<h1>Search</h1>
<input type="search" name="search-query" id="search" />
<label for="search">Enter Search Query</label>
<br />
<h1>Telephone</h1>
<label for="phone">Telephone Number</label>
<input
type="tel"
name="phone"
id="phone"
required
placeholder="123-45-678"
pattern="[0-9]{3}-[0-9]{2}-[0-9]{3}"
/>
<br />
<br />
<small>Format - 123-45-678</small>
<br />
<h1>Time</h1>
<input type="time" name="time" id="time" />
<label for="time">Select a Time</label>
<br />
<h1>URL</h1>
<input type="url" name="url-address" id="url-address" />
<label for="url-address">Enter URL Address</label>
<br />
<h1>Week</h1>
<input type="week" name="week" id="week" />
<label for="week">Select a Week</label>
<br />
<br />
<h1>Select Values</h1>
<label for="cars">Choose a Car</label>
<select name="cars" id="cars" multiple>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat" selected>Fiat</option>
<option value="audi" selected>Audi</option>
<option value="omni">Omni</option>
<option value="toyota">Toyota</option>
<option value="fortunar">Fortunar</option>
<option value="audi">Audi</option>
</select>
<h1>Data List</h1>
<input list="browsers" />
<datalist id="browsers">
<option value="Internet Explorer"></option>
<option value="Firefox"></option>
<option value="Chrome"></option>
<option value="Opera"></option>
<option value="Safari"></option>
</datalist>
</form>
</body>
</html>