-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdta_entry_form.html
113 lines (101 loc) · 3.91 KB
/
dta_entry_form.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
<!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>Form 2</title>
</head>
<body>
<!-- heading 1 -->
<h1 align="center">Created by Ankit</h1>
<!-- form tag -->
<form>
<!-- Fieldset makes the field border -->
<fieldset>
<!-- Legend for naming the form -->
<legend>Student Details</legend>
<!-- Label -->
<label for="name">Student Name:</label>
<!-- for and id should be same -->
<!-- name is used ,when we user gives an input and send to serve , so with the help of name we are able to receive the user's input -->
<input type="text" name="Username" id="name" />
<br />
<br />
<!-- br for line break -->
<!-- label -->
<label for="email">Email:</label>
<!-- for and id should be same -->
<!-- name is used ,when we user gives an input and send to serve , so with the help of name we are able to receive the user's input -->
<input type="email" name="Usermail" id="email" />
<br />
<br />
<!-- br for line break -->
<!-- choosing gender with the help of radio button-->
Gender:
<br />
<!--   is used to take one tab space -->
<label for="male">Male</label>
<input type="radio" id="male" name="gender" />
<!-- for and id should be same -->
<!-- name is used ,when we user gives an input and send to serve , so with the help of name we are able to receive the user's input -->
<br />
<label for="female">Female</label>
<input type="radio" id="female" name="gender" />
<br />
<label for="other">Other</label>
<input type="radio" id="other" name="gender" />
<br /><br />
<!-- choosing subjects with the help of "checkbox" -->
Subjects:
<label for="phy">Physics</label>
<input type="checkbox" name="physics" id="phy" />
<label for="che">Chemistry</label>
<input type="checkbox" name="physics" id="che" />
<label for="mat">Maths</label>
<input type="checkbox" name="Maths" id="mat" />
<label for="phyedu">Physical Education</label>
<input type="checkbox" name="physical eduction" id="phyedu" />
<label for="cs">Computer Science</label>
<input type="checkbox" name="cs" id="cs" />
<br /><br />
<!-- Selecting states with the help of select tag and the option tag is used inside the select tag. -->
Select State:
<select>
<option value="">Uttarakhand</option>
<option value="">Uttarpradesh</option>
<option value="">Bihar</option>
<option value="">Madhyapradesh</option>
<option value="">Andhrapradesh</option>
<option value="">Aruranchalpradesh</option>
<option value="">Assam</option>
<option value="">Chattisgarh</option>
<option value="">Gujarat</option>
<option value="">Haryana</option>
<option value="">Kerala</option>
<option value="">Maharastra</option>
</select>
<br /><br />
<!-- textarea tag is used -->
<label for="comments">Comments</label>
<textarea
name=""
id="comments"
cols="30"
rows="10"
name="usercomments"
></textarea>
<br />
<br />
<!-- AT last submit and reset tags are used -->
<input type="reset" value="Reset" />
<input type="submit" value="Submit" />
</fieldset>
</form>
</body>
</html>