f12.html 2024.12.07 08.55.17
f12.html 2024.12.07 08.55.17
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Student Registration</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f4f4f9;
}
.container {
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
width: 400px;
}
.container h1 {
text-align: center;
color: #333;
}
form {
display: flex;
flex-direction: column;
}
.form-group {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.form-group label {
flex: 1;
color: #555;
font-size: 0.9rem;
}
.form-group input {
flex: 2;
padding: 8px;
font-size: 1rem;
border: 1px solid #ddd;
border-radius: 5px;
}
.form-group input:focus {
border-color: #007BFF;
outline: none;
}
.form-group button {
width: 100%;
padding: 10px;
background-color: #007BFF;
color: white;
border: none;
border-radius: 5px;
font-size: 1rem;
cursor: pointer;
}
.form-group button:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<div class="container">
<h1>Student Registration</h1>
<form>
<div class="form-group">
<label for="first-name">First Name:</label>
<input type="text" id="first-name" name="first-name"
placeholder="Enter your first name">
</div>
<div class="form-group">
<label for="last-name">Last Name:</label>
<input type="text" id="last-name" name="last-name"
placeholder="Enter your last name">
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" placeholder="Enter your
email">
</div>
<div class="form-group">
<label for="phone">Phone Number:</label>
<input type="tel" id="phone" name="phone" placeholder="Enter your
phone number">
</div>
<div class="form-group">
<label for="dob">Date of Birth:</label>
<input type="date" id="dob" name="dob">
</div>
<div class="form-group">
<label for="grade">Grade:</label>
<input type="text" id="grade" name="grade" placeholder="Enter your
grade">
</div>
<div class="form-group">
<button type="submit">Register</button>
</div>
</form>
</div>
</body>
</html>