-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.html
More file actions
187 lines (154 loc) · 5 KB
/
Copy pathform.html
File metadata and controls
187 lines (154 loc) · 5 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
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Student Registration Form</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f7fb;
margin: 0;
padding: 0;
}
header {
background-color: #3498db;
color: white;
text-align: center;
padding: 20px 0;
font-size: 28px;
font-weight: bold;
}
nav {
background-color: #2c3e50;
text-align: center;
padding: 10px 0;
}
nav a {
color: white;
text-decoration: none;
margin: 0 15px;
font-weight: bold;
}
nav a:hover {
color: #f1c40f;
transition: 0.3s;
}
.container {
width: 60%;
margin: 30px auto;
background-color: #ffffff;
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
h1 {
text-align: center;
color: #2c3e50;
margin-bottom: 30px;
}
form label {
display: block;
margin-top: 15px;
font-weight: bold;
}
form input[type="text"],
form input[type="email"],
form input[type="number"],
form select {
width: 100%;
padding: 10px;
margin-top: 5px;
border-radius: 5px;
border: 1px solid #ccc;
}
.radio-group, .checkbox-group {
margin-top: 5px;
}
.radio-group input,
.checkbox-group input {
margin-right: 5px;
}
form input[type="submit"] {
margin-top: 25px;
background-color: #3498db;
color: white;
padding: 12px 25px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
}
form input[type="submit"]:hover {
background-color: #2980b9;
transition: 0.3s;
}
/* Optional small notes */
.note {
font-size: 14px;
color: #555;
margin-top: 5px;
}
</style>
</head>
<body>
<header>Student Registration</header>
<nav>
<a href="index.html" title="Home">Home</a>
<a href="list.html" title="Lists Example">Lists</a>
<a href="Tablepage.html" title="Table">Tables</a>
<a href="formating.html" title="Text Formatting Reference">Formatting</a>
<a href="form.html" title="About Page">Form</a>
<a href="About.html" title="About Page">About</a>
</nav>
<div class="container">
<h1>Register New Student</h1>
<form>
<!-- Text Input -->
<label for="fullname">Full Name</label>
<input type="text" id="fullname" name="fullname" placeholder="Enter full name" required>
<!-- Email Input -->
<label for="email">Email Address</label>
<input type="email" id="email" name="email" placeholder="Enter email" required>
<!-- Phone Number -->
<label for="phone">Phone Number</label>
<input type="text" id="phone" name="phone" placeholder="Enter phone number">
<!-- Age -->
<label for="age">Age</label>
<input type="number" id="age" name="age" min="10" max="100">
<!-- Gender (Radio Buttons) -->
<label>Gender</label>
<div class="radio-group">
<input type="radio" id="male" name="gender" value="male">
<label for="male">Male</label>
<input type="radio" id="female" name="gender" value="female">
<label for="female">Female</label>
<input type="radio" id="other" name="gender" value="other">
<label for="other">Other</label>
</div>
<!-- Courses (Checkboxes) -->
<label>Courses Interested In</label>
<div class="checkbox-group">
<input type="checkbox" id="html" name="course" value="html">
<label for="html">HTML</label>
<input type="checkbox" id="css" name="course" value="css">
<label for="css">CSS</label>
<input type="checkbox" id="js" name="course" value="js">
<label for="js">JavaScript</label>
<input type="checkbox" id="python" name="course" value="python">
<label for="python">Python</label>
</div>
<!-- Country (Select Dropdown) -->
<label for="country">Country</label>
<select id="country" name="country">
<option value="" disabled selected>Select your country</option>
<option value="rwanda">Rwanda</option>
<option value="kenya">Kenya</option>
<option value="uganda">Uganda</option>
<option value="tanzania">Tanzania</option>
</select>
<!-- Submit Button -->
<input type="submit" value="Register Student">
</form>
</div>
</body>
</html>