Untitled
unknown
plain_text
2 years ago
2.2 kB
3
Indexable
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Student Registration Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; } form { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 1. Create a Student Registration Form using HTML, CSS and JavaScript with the fields for First name , Last name ,Email, Gender and DOB. } label { display: block; margin-bottom: 8px; font-weight: bold; } input, select { width: 100%; padding: 8px; margin-bottom: 16px; box-sizing: border-box; } button { background-color: #4caf50; color: #fff; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #45a049; } </style> </head> <body> <form> <label for="firstName">First Name:</label> <input type="text" id="firstName" name="firstName" required> <label for="lastName">Last Name:</label> <input type="text" id="lastName" name="lastName" required> <label for="email">Email:</label> <input type="email" id="email" name="email" required> <label for="gender">Gender:</label> <select id="gender" name="gender" required> <option value="male">Male</option> <option value="female">Female</option> <option value="other">Other</option> </select> <label for="birthdate">Date of Birth:</label> <input type="date" id="birthdate" name="birthdate" required> <button type="submit">Register</button> </form> </body> </html>
Editor is loading...
Leave a Comment