-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.html
More file actions
125 lines (94 loc) · 4.11 KB
/
Copy pathform.html
File metadata and controls
125 lines (94 loc) · 4.11 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
<!DOCTYPE html>
<html>
<body>
<h2>HTML Forms</h2>
<form action="/action_page.php">
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname" value="John" size="50" autofocus><br>
<label for="fname">First name:</label><br>
<input type="text" id="fname2" name="fname" value="John" readonly><br>
<label for="fname">First name:</label><br>
<input type="text" id="fname3" name="fname" value="John" disabled><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname" value="Doe" required><br>
<label for="pwd">Password:</label><br>
<input type="password" id="pwd" name="pwd"><br>
<label for="pin">PIN:</label><br>
<input type="text" id="pin" name="pin" maxlength="4" size="4"><br>
<label for="birthday">Birthday:</label>
<input type="date" id="birthday" name="birthday"><br>
<label for="datemax">Enter a date before 1980-01-01:</label>
<input type="date" id="datemax" name="datemax" max="1979-12-31"><br><br>
<label for="datemin">Enter a date after 2000-01-01:</label>
<input type="date" id="datemin" name="datemin" min="2000-01-02"><br>
<label for="birthdaytime">Birthday (date and time):</label>
<input type="datetime-local" id="birthdaytime" name="birthdaytime">
<br>
<label for="bdaymonth">Birthday (month and year):</label>
<input type="month" id="bdaymonth" name="bdaymonth"><br>
<label for="quantity">Quantity (between 1 and 5):</label>
<input type="number" id="quantity" name="quantity" min="1" max="5"><br>
<label for="vol">Volume (between 0 and 50):</label>
<input type="range" id="vol" name="vol" min="0" max="50"><br>
<label for="email">Enter your email:</label>
<input type="email" id="email" name="email"><br>
<input type="radio" id="html" name="fav_language" value="HTML">
<label for="html">HTML</label><br>
<input type="radio" id="css" name="fav_language" value="CSS">
<label for="css">CSS</label><br>
<input type="radio" id="javascript" name="fav_language" value="JavaScript">
<label for="javascript">JavaScript</label><br>
<input type="checkbox" id="vehicle1" name="vehicle1" value="Bike">
<label for="vehicle1"> I have a bike</label><br>
<input type="checkbox" id="vehicle2" name="vehicle2" value="Car">
<label for="vehicle2"> I have a car</label><br>
<input type="checkbox" id="vehicle3" name="vehicle3" value="Boat">
<label for="vehicle3"> I have a boat</label><br>
<label for="cars">Choose a car:</label>
<select id="cars" name="cars" size="4" multiple>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat" selected>Fiat</option>
<option value="audi">Audi</option>
</select>
<br>
<label for="favcolor">Select your favorite color:</label>
<input type="color" id="favcolor" name="favcolor"><br>
<textarea name="message" rows="10" cols="30">
The cat was playing in the garden.
</textarea>
<br>
<input list="browsers">
<datalist id="browsers">
<option value="Edge">
<option value="Firefox">
<option value="Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
<br>
<input type="image" src="img_submit.gif" alt="Submit" width="48" height="48">
<br>
<label for="myfile">Select a file:</label>
<input type="file" id="myfile" name="myfile" multiple><br>
<input type="hidden" id="custId" name="custId" value="3487"><br>
<label for="gsearch">Search Google:</label>
<input type="search" id="gsearch" name="gsearch"><br>
<label for="phone">Enter your phone number:</label>
<input type="tel" id="phone" name="phone"
placeholder="123-45-678"
pattern="[0-9]{3}-[0-9]{2}-[0-9]{3}"><br>
<label for="appt">Select a time:</label>
<input type="time" id="appt" name="appt">
<br>
<label for="homepage">Add your homepage:</label>
<input type="url" id="homepage" name="homepage"><br>
<label for="week">Select a week:</label>
<input type="week" id="week" name="week"><br>
<p>If you click the "Submit" button, the form-data will be sent to a page called "/action_page.php".</p>
<br>
<input type="submit" value="Submit"><br>
<button type="reset">Reset Form</button><br>
</form>
</body>
</html>