-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadForm.html
More file actions
146 lines (133 loc) · 3.67 KB
/
adForm.html
File metadata and controls
146 lines (133 loc) · 3.67 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
139
140
141
142
143
144
145
146
<html>
<head>
<title>All Input Types and Attributes</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
padding: 10%;
display: flex;
justify-content: center;
align-items: center;
overflow: scroll;
height: 175vh;
}
form {
background-color: #fff;
border-radius: 8px;
border: 1px solid black;
width: 100%;
margin-left: 20px;
padding: 20px;
box-sizing: border-box;
}
label {
display: block;
margin-bottom: 8px;
font-weight: bold;
}
input,
select,
textarea {
width: 100%;
padding: 8px;
margin-bottom: 10px;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
background-color: #97ad97;
color: #fff;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #02ff0e;
}
</style>
</head>
<body>
<form>
<h2 style="text-align: center; color: red; border: 1px solid black">
Contact Form
</h2>
<label for="text">UserName:</label>
<input
type="text"
id="text"
name="text"
placeholder="Enter text"
required
maxlength="5"
/>
<label for="password">Password:</label>
<input
type="password"
id="password"
name="password"
placeholder="Enter password"
required
minlength="8"
maxlength="20"
/>
<label for="email">Email:</label>
<input
type="email"
id="email"
name="email"
placeholder="Enter email"
required
/>
<label for="url">Github URL:</label>
<input type="url" id="url" name="url" placeholder="Enter URL" required />
<label for="number">Mobile.No:</label>
<input
type="number"
id="number"
name="number"
placeholder="Enter number"
required
min="1"
max="100"
/>
<label for="date">Date:</label>
<input type="date" id="date" name="date" required />
<label for="checkbox">Checkbox:</label>
<input type="checkbox" id="checkbox" name="checkbox" checked disabled />
<label for="radio">Radio:</label>
<input type="radio" id="radio1" name="radio" value="option1" />female
<input type="radio" id="radio2" name="radio" value="option2" checked />male
<label for="color">Color:</label>
<input type="color" id="color" name="color" value="#ff0000" />
<label for="range">Range:</label>
<input type="range" id="range" name="range" />
<label for="file">File:</label>
<input type="file" id="file" name="file" />
<label for="datetime-local">Datetime Local:</label>
<input type="date" id="datetime-local" name="datetime-local" />
<label for="month">Month:</label>
<input type="month" id="month" name="month" />
<label for="week">Week:</label>
<input type="week" id="week" name="week" />
<label for="tel">Tel:</label>
<input
type="tel"
id="tel"
name="tel"
placeholder="Enter telephone number"
/>
<label for="search">Search:</label> 
<input type="search" id="search" name="search" placeholder="Search" />
<label for="textarea">Textarea:</label>
<textarea
id="textarea"
name="textarea"
placeholder="Enter text"
></textarea>
<button type="submit">Submit</button>
</form>
</body>
</html>