-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.html
More file actions
56 lines (52 loc) · 1.72 KB
/
form.html
File metadata and controls
56 lines (52 loc) · 1.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<!-- Forms are uesd to collect data form the users -->
<!-- Actions in form:Action attribute is used to define waht action needs to be
performed when a form is submitted -->
<h3>Registration form</h3>
<form>
<input type="text" placeholder="User name ">
<br><br>
<input type="password" placeholder="password">
<br>
<h4>Select your class </h4>
<input type="radio" value="class XI" name="class">class XI
<br>
<input type="radio" value="class XII" name="class">class XII
<br>
<h4>Select your fav subjects </h4>
<label for="math">
<input type="checkbox" value="math" name="subject " id="101">Math
</label>
<br>
<label for="phy">
<input type="checkbox" value="phy" name="subject " id="101">Physics
</label>
<br>
<label for="chem">
<input type="checkbox" value="chem" name="subject " id="101">chemistry
</label>
<br>
<label for="com">
<input type="checkbox" value="com" name="subject " id="101">Computer Science
</label>
<br>
<br>
Select your city
<select name="City">
<option value="Nawabshah">Nawabshah</option>
<option value="Daur">Daur</option>
<option value="Bandhi">Bandhi</option>
</select>
<br>
<br>
<input type="submit" value="submit">
</form>
</body>
</html>