-
Notifications
You must be signed in to change notification settings - Fork 0
/
15_HTML_Input_Types.html
162 lines (141 loc) · 3.34 KB
/
15_HTML_Input_Types.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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML Input Types</title>
<style>
body{
font-family: Arial, sans-serif;
}
div{
background-color: orange;
width: 400px;
padding: 10px;
border-radius: 10px;
}
</style>
</head>
<body>
<h1 align="center">HTML Input Types</h1>
<!-- input type text -->
<h2>Text Box</h2>
<div>
<form>
<label>Enter the text</label>
<input type="text">
</form>
</div>
<!-- input type password -->
<h2>Password Box</h2>
<div>
<form>
<label>Enter the password</label>
<input type="password">
</form>
</div>
<!-- input type submit -->
<h2>Submit Button</h2>
<div>
<form>
<label>Submit button</label>
<input type="submit">
</form>
</div>
<!-- input type reset -->
<h2>Reset Button</h2>
<!-- input type radio -->
<h2>Radio Field</h2>
<!-- input type checkbox -->
<h2>Check Box</h2>
<!-- HTML5 Input Types color, date, datetime-local, email,
month, number, range, search, time, url, Week-->
<h1 align="center">HTML5 Input Types</h1>
<!-- color -->
<h2>Input Type color</h2>
<!-- date -->
<h2>Input Type date</h2>
<div>
<form>
<label>Select a date</label>
<input type="date">
</form>
</div>
<!-- datetime-local -->
<h2>Input Type datetime-local</h2>
<div>
<form>
<label>Select a date</label>
<input type="datetime-local">
</form>
</div>
<!-- email -->
<h2>Input Type email</h2>
<div>
<form>
<label>Enter the email addr</label>
<input type="email">
</form>
</div>
<!-- month -->
<h2>Input Type month</h2>
<div>
<form>
<label>Select a Month</label>
<input type="month">
</form>
</div>
<!-- number -->
<h2>Input Type number</h2>
<div>
<form>
<label>Enter your age</label>
<input type="number" min="18" max="60">
<input type="submit" value="Submit">
</form>
</div>
<!-- range -->
<h2>Input Type range</h2>
<div>
<form>
<label>Select a range</label>
0<input type="range" min="0" max="100" id="limit">100
<input type="button" value="send"
onclick="alert(document.getElementById('limit').value)">
</form>
</div>
<!-- search -->
<h2>Input Type search</h2>
<div>
<form>
<label>Search</label>
<input type="search">
</form>
</div>
<!-- time -->
<h2>Input Type time</h2>
<div>
<form>
<label>Select a time</label>
<input type="time">
</form>
</div>
<!-- week -->
<h2>Input Type week</h2>
<div>
<form>
<label>Select a Week</label>
<input type="week">
</form>
</div>
<!--URL-->
<h2>Input Type URL</h2>
<div>
<form>
<label>Enter the URL</label>
<input type="url">
<input type="submit" value="Submit">
</form>
</div>
<br><br><br>
</body>
</html>