Programming Examples

Design a HTML form for Student Registration


Student Registration Form

Create a Student Registration form which Accept the:

Student Name, Father's Name, Mother's Name, Date of Birth, Gender , E-mail Id and Mobile Number with Submit Button.

Solution

<!doctype html>
<html>
	<head>
		<title>Student Registration Form</title>
	</head>
	<body>
		<form>
			<table border="1" align="center" width="60%" cellpadding="5px">
				<tr>
					<th colspan="2"><h2>Registration Form</h2></th>
				</tr>
				<tr>
					<td><label>Student Name</label></td>
					<td><input type="text"></td>
				</tr>
				<tr>
					<td><label>Father's Name</label></td>
					<td><input type="text"></td>
				</tr>
				<tr>
					<td><label>Mother's Name</label></td>
					<td><input type="text"></td>
				</tr>
				<tr>
					<td><label>Date of Birth</label></td>
					<td><input type="date"></td>
				</tr>
				<tr>
					<td><label>Gender</label></td>
					<td><label>Male</label><input type="radio" name="gender"><label>Female</label><input name="gender" type="radio"></td>
				</tr>
				<tr>
					<td><label>Email ID</label></td>
					<td><input type="email"></td>
				</tr>
				<tr>
					<td><label>Mobile No.</label></td>
					<td><input type="text"></td>
				</tr>
				<tr>
					<td><label>Address</label></td>
					<td><textarea rows="4"></textarea></td>
				</tr>				
				<tr>
					<td><label>State</label></td>
					<td><input type="text"></td>
				</tr>
				<tr>
					<td><label>City</label></td>
					<td><input type="text"></td>
				</tr>
				<tr>
					<td></td>
					<td>
						<input type="button" value="Submit"/>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
Output


CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz