Create Admission Form
अमित सर के इस ब्लॉग में नीचे जो codes बताया गया है, उस HTML Codes को आप Notepad ++ software में टाईप करें और उसे कोई एक नाम देकर सुरक्षित करें। जैसेे- adm.html और उसके बाद उस फाईल को रन कराने के लिए आप उस पर डब्ल click करे जिससे आपको एक Basic Admission Form बन कर तैयार हो जाएगा।
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Student Admission Form</title>
<style>
/* CSS styles go here */
</style>
</head>
<body>
<header>
<h1>Student Admission Form</h1>
</header>
<main>
<form id="admissionForm" action="submit.php" method="post">
<label for="firstName">First Name:</label><br>
<input type="text" id="firstName" name="firstName" required><br><br>
<label for="lastName">Last Name:</label><br>
<input type="text" id="lastName" name="lastName" required><br><br>
<label for="dateOfBirth">Date of Birth:</label><br>
<input type="date" id="dateOfBirth" name="dateOfBirth" required><br><br>
<label for="gender">Gender:</label><br>
<select id="gender" name="gender" required>
<option value="">Select</option>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option>
</select><br><br>
<label for="email">Email:</label><br>
<input type="email" id="email" name="email" required><br><br>
<label for="phoneNumber">Phone Number:</label><br>
<input type="tel" id="phoneNumber" name="phoneNumber" pattern="[0-9]{10}" required><br><br>
<label for="address">Address:</label><br>
<textarea id="address" name="address" rows="4" required></textarea><br><br>
<label for="courses">Courses:</label><br>
<input type="checkbox" id="course1" name="courses" value="Mathematics">
<label for="course1">Mathematics</label><br>
<input type="checkbox" id="course2" name="courses" value="Science">
<label for="course2">Science</label><br>
<input type="checkbox" id="course3" name="courses" value="English">
<label for="course3">English</label><br><br>
<button type="submit">Submit</button>
</form>
</main>
<footer>
<p>© 2024 Student Admission Form</p>
</footer>
</body>
</html>
Related Posts