-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinputattr.html
More file actions
118 lines (92 loc) · 3.2 KB
/
inputattr.html
File metadata and controls
118 lines (92 loc) · 3.2 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
<!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 Attributes</title>
</head>
<body>
<!--Input Attributes-->
<form>
Enter Any Text:
<input type="text" value="Default Value">
<br><br>
Only Read Text:
<input type="text" value="Read Only" readonly>
<br><br>
Disabled Text:
<input type="text" value="Disabled Value" disabled>
<br><br>
Enter Text Here: <br>
<input type="text" value="without size With value Lorem ipsum dolor, sit amet consectetur adipisicing elit. Impedit, quasi.">
<br><br>
<input type="text" size="50" value="With size Lorem ipsum dolor, sit amet consectetur adipisicing elit. Impedit, quasi.">
<br><br>
Max length only ten character Here:
<input type="text" maxlength="10" >
<br><br>
Min and Max length:
<input type="text" minlength="2" maxlength="5">
<br><br>
Step for increase size:
<input type="number" value="2" step="5">
<br><br>
Autofocus:
<input type="text" autofocus>
<br><br>
<button type="submit">Submit</button>
</form>
<br><br><br>
<h2>Autocomplete</h2>
<form action="" autocomplete="on">
<label for="fname">First name:</label>
<input type="text" name="fname"><br><br>
<label for="lname">Last name:</label>
<input type="text" name="lname"><br><br>
<label for="email">Email:</label>
<input type="email" name="email"><br><br>
<input type="submit">
</form>
<br><br><br>
<h3>Image Submit Button</h3>
<form action="">
Enter Discription:
<textarea name="" id="" cols="30" rows="10"></textarea>
<input type="image" src="images/submit.png" height="100px" width="100px">
</form>
<br><br><br>
<h3>Form Selection Option</h3>
<form>
Select Any Option:
<select>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Four</option>
</select>
</form>
<br><br>
<h3>Option Group</h3>
<form>
Option Group:
<select>
<optgroup label="Car">
<option value="Tata">Tata</option>
<option value="Tesla">Tesla</option>
<option value="Audi">Audi</option>
</optgroup>
<optgroup label="Bike">
<option value="Hero">Hero</option>
<option value="Bajaj">Bajaj</option>
<option value="Honda">Honda</option>
</optgroup>
<optgroup label="Bicycle">
<option value="Hero">Hero</option>
<option value="Sunami">Sunami</option>
<option value="Electro">Electro</option>
</optgroup>
</select>
</form>
</body>
</html>