forked from Ayushgupta0207/HacktoberFest-2023
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathadded code for registration for college.html
156 lines (138 loc) · 3.98 KB
/
added code for registration for college.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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body{
font-family: Arial, Helvetica, sans-serif;
background: color #f2f2f2;;
margin: 0;
padding: 0;
}
.container {
background-color:#ffffff;
padding: 20px;
margin: 50px auto;
max-width: 600px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 5px; }
h1 {
text-align: center;
color: #333;
}
hr {
border: 1px solid #f1f1f1;
margin-bottom: 25px;
}
input[type=text], input[type=password], textarea,
select{
width: 100%;
padding: 12px;
margin: 8px 0;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 4px;
background-color: #f8f8f8;
}
input[type=text]:focus,
input[type=password]:focus,
textarea:focus,
select:focus{
background-color: rgb(229, 224, 215);
outline: none;
}
.radio-group {
display: flex;
align-items: center;
margin-top: 8px;
}
.radio-group label {
margin-right: 10px;
}
.button-container {
text-align: center;
}
.registerbtn {
background-color: #4CAF50;
color: white;
padding: 16px 20px;
border: none;
cursor: pointer;
width: 100%;
width: 100%;
border-radius: 4px;
font-weight: bold;
transition: background-color 0.3s ease-in-out;
}
.registerbtn:hover {
background-color: #45a049;
}
.registerbtn-container {
position: relative;
}
.registerbtn-container img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 30px;
height: 30px;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}
.registerbtn-container:hover img {
opacity: 1;
}
</style>
</head>
<body>
<form>
<div class="container">
<h1> Student Registeration Form</h1>
<hr>
<label for="firstname"> Firstname :</label>
<input type="text" name="firstname" placeholder= "Firstname" required />
<label> Middlename: </label>
<input type="text" name="middlename" placeholder="Middlename" required />
<label> Lastname: </label>
<input type="text" name="lastname" placeholder="Lastname" required />
<div>
<label for="course" > Course : </label>
<select name="course">
<option value="Course">Course</option>
<option value="BCA">BCA</option>
<option value="BBA">BBA</option>
<option value="B.Tech">B.Tech</option>
<option value="MBA">MBA</option>
<option value="MCA">MCA</option>
<option value="M.Tech">M.Tech</option>
</select>
</div>
<div class="radio-group">
<label> Gender : </label>
<input type="radio" value="Male" name="gender" checked > Male
<input type="radio" value="Female" name="gender"> Female
<input type="radio" value="Other" name="gender"> Other
</div>
<label for="phone"> Phone : </label>
<div>
<input type="text" name="countrycode" placeholder="Country Code" value="+91" size="2"/>
<input type="text" name="phone" placeholder="phone no." required>
</div>
<label for="address">Current Address:</label>
<textarea name="address" cols="80" rows="5" placeholder="Current Address" required></textarea>
<label for="email">Email:</label>
<input type="text" placeholder="Enter Email" name="email" required>
<label for="password">Password:</label>
<input type="password" placeholder="Enter Password" name="password" required>
<label for="password-repeat">Re-type Password:</label>
<input type="password" placeholder="Retype Password" name="password-repeat" required>
<div class="button-container">
<div class="registerbtn-container">
<button type="submit" class="registerbtn">Register</button>
</div>
</div>
</div>
</form>
</body>
</html>