Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

9.

Write a program to create a form that includes


name,qualification,Date of birth,gender,hobbies and
add submit button.

<html>
<head><title>Form</title>
</head>
<body>
<font size=7><center><b><u>
Registration form</u></b>
</center>
</font><form>
<h3>Name:
<input type="text" name="t1"></h3>
<h3>Date of Birth:
<input type="text" name="t2"></h3>
<h3>Gender:</h3>
<input value="" name="r1"
value="male">Male<br>
<input value =""name="r2"
value="female">Female<br>
<h3>Qualifications:
<Select name="Qual">
<option value="10th">10th</option>
<option value="12th">12th</option>
<option value="other">other</option></h3>
<h3>Hobbies:</h3>
<input type="checkbox" name="c1"
value="dancing">Dancing<br>
<input type="checkbox" name="c2"
value="singing">singing<br>
<input type="checkbox" name="c3"
value="Playing games">Playing games<br>
<input type="checkbox" name="c4"
value="Reading novels">Reading novels<br>
<center><input type="submit"value="submit">
</center>
</form>
</body>
</html>

You might also like