-
Notifications
You must be signed in to change notification settings - Fork 0
/
tableForm.html
142 lines (130 loc) · 4.38 KB
/
tableForm.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!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>tableForm</title>
<style>
th {
border: 1px solid black;
background-color: rgb(252, 252, 153);
font-size: 28px;
color: red;
text-align: center;
}
table tr td {
border: 1px solid black;
padding: 2px 15px;
width: 130px;
background-color: rgb(100, 215, 253);
}
table tr td label {
text-align: center;
}
button {
height: 40px;
width: 120px;
}
button:hover {
background-color: aqua;
}
</style>
</head>
<body>
<form action="#">
<table border="3" cellspacing="5px">
<th colspan="2">Registraion Form</th>
<tr>
<td>
<label for="name">Enter Name </label>
</td>
<td>
<input type="text" name="" id="name">
</td>
</tr>
<tr>
<td>
<label for="pass">Enter Password </label>
</td>
<td>
<input type="password" name="" id="pass">
</td>
</tr>
<tr>
<td>
<label for="add">Enter Address </label>
</td>
<td>
<textarea name="" id="add" cols="21" rows="4"></textarea>
</td>
</tr>
<tr>
<td>
<label for="">Select Game </label>
</td>
<td>
<input type="checkbox" name="" id="h">
<label for="h">Hockey</label>
<br>
<input type="checkbox" name="" id="f">
<label for="f">Football</label>
<br>
<input type="checkbox" name="" id="b">
<label for="b">Badminton</label>
<br>
<input type="checkbox" name="" id="c">
<label for="c">Circket</label>
<br>
<input type="checkbox" name="" id="v">
<label for="v">Volleyball</label>
</td>
</tr>
<tr>
<td>
<label for="">Gender</label>
</td>
<td>
<input type="radio" name="gender" id="m">
<label for="m">Male</label>
<input type="radio" name="gender" id="fe">
<label for="fe">Female</label>
</td>
</tr>
<tr>
<td>
<label for="age">Select your age </label>
</td>
<td>
<select name="age" id="age">
<option value="select">Select</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="More">More than 22</option>
</select>
</td>
</tr>
<tr>
<td>
<label for="photo">Select Photo</label>
</td>
<td>
<input type="file" name="" id="photo">
</td>
</tr>
<tr>
<td colspan="2">
<Button>Click Me</Button>
<Button value="reset">Reset</Button>
<Button value="submit" onclick="alert('Form submitted successfully!')">Submit Form</Button>
</td>
</tr>
</table>
</form>
</body>
</html>