-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtask5.html
121 lines (118 loc) · 4.33 KB
/
task5.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
<html lang="en"><head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Task-5</title>
<style>
h3{
color: blue;
letter-spacing: 0.5px;
}
input[type="text"],input[type="number"],input[type="password"]{
width: 98.5%;
}
.r1{
text-align: center;
}
.radio-option{
text-align: left;
}
.redirect{
text-align: end;
}
tr:nth-child(10){
height: 20px;
}
.add{
height: 50px;
}
</style>
</head>
<body>
<h3 style="text-align: center;">Registration Form</h3>
<form>
<table border="1" cellspacing="0" align="center" style="width: 600px;">
<tbody><tr>
<td class="r1"><label for="fn"><b>First Name</b></label></td>
<td><input type="text"></td>
</tr>
<tr>
<td class="r1"><label for="ln"><b>Last Name</b></label></td>
<td><input type="text"></td>
</tr>
<tr>
<td class="r1"><label for="email"><b>Email</b></label></td>
<td><input type="text"></td>
</tr>
<tr>
<td class="r1"><label for="pass"><b>Password</b></label></td>
<td><input type="password"></td>
</tr>
<tr>
<td class="r1"><label for="repass"><b>Re-enter Password</b></label></td>
<td><input type="password"></td>
</tr>
<tr>
<td rowspan="2" class="r1"><label for="gen"><b>Gender</b></label></td>
<td class="radio-option">
<!-- Here if we give name value saame for both inputs so only one radio option will choose -->
<input type="radio" name="gen">
<label for="gen"> Male</label>
</td>
</tr>
<tr>
<td class="radio-option">
<input type="radio" name="gen">
<label for="gen">Female</label>
</td>
</tr>
<tr>
<td class="r1"><label for="age"><b>Age</b></label></td>
<td><input type="number"></td>
</tr>
<tr>
<td class="r1"><label for="p_no"><b>Phone Number</b></label></td>
<td><input type="text"></td>
</tr>
<tr>
<td rowspan="3" class="r1"><label for="add"><b>Address</b></label></td>
<td rowspan="3"><input class="add" type="text"></td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<td class="r1"><label for="st"><b>State</b></label></td>
<td><input type="text"></td>
</tr>
<tr>
<td class="r1"><label for="con"><b>Country</b></label></td>
<td>
<select name="con">
<option value="choose">Choose your country</option>
<option value="in">India</option>
<option value="us">USA</option>
</select>
</td>
</tr>
<tr>
<td class="r1"><label for="lang"><b>Languages known</b></label></td>
<td>
<input type="checkbox"> English
<input type="checkbox"> Kannada
<input type="checkbox"> Hindi
<input type="checkbox"> Telugu
</td>
</tr>
<tr>
<td class="radio-option" colspan="2"><input type="checkbox" checked=""> Hereby I declare all the given details are true</td>
</tr>
<tr>
<td class="redirect" colspan="2">Login to <a href="https://ethnus.com/" target="_blank">Ethnus</a> website</td>
</tr>
</tbody></table>
<div style="text-align: center; padding: 15px;">
<input type="submit" value="Register" name="Register">
</div>
</form>
</body></html>