-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtut8.html
More file actions
86 lines (71 loc) · 2.37 KB
/
tut8.html
File metadata and controls
86 lines (71 loc) · 2.37 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
<!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>HTML Form</title>
</head>
<body>
<h2>I am creating form</h2>
<!-- div tag is work like br tag -->
<!-- which is work for get new line after complete the div tag -->
<form action="backend.php">
<!-- Using label tag you can click on name you will able to enter the name.. -->
<label for="name">Name :</label>
<div>
<input type="text" name="myName" id="name">
</div>
<br>
<label for="address">Address:</label>
<div>
<textarea name="myAddress" cols="300" rows="5" id="address"></textarea>
</div>
<br>
<label for="email">Email:</label>
<div>
<input type="email" name="myEmail" id="email">
</div>
<br>
<div>
<label for="car">Car</label>
<select name="myCar" id="car">
<option value="swift">Swift</option>
<option value="carn">Carnival</option>
<option value="verna">Verna</option>
<!-- Using selected tag it was select by default..\ -->
<option value="xuv" selected>xuv700</option>
</select>
</div>
<br>
<label for="date">Date:</label>
<div>
<input type="date" name="myDate" id="date">
</div>
<br>
<label for="mbilenumber">MobileNumber:</label>
<div>
<input type="number" name="myNumber" id="MobileNumber">
</div>
<br>
<div>
Gender: Male <input type="radio" name="myGender"> Female <input type="radio" name="myGender">
</div>
<br>
<div>
Hobby: <br>
<input type="checkbox" name="myHobby"> cricket <br>
<input type="checkbox" name="myHobby"> dancing <br>
<input type="checkbox" name="myHobby"> cycling <br>
<input type="checkbox" name="myHobby"> singing <br>
<input type="checkbox" name="myHobby"> writing <br>
</div>
<br>
<div>
<input type="submit" value="Submit Now">
<input type="reset" value="Reset Now">
</div>
<br>
</form>
</body>
</html>