Courses-322176 (Section-1, Content-5Chapter 5 Form in HTML PDF
Courses-322176 (Section-1, Content-5Chapter 5 Form in HTML PDF
Chapter 5
Form in HTML
Text box Drop-down List
Checkbox Combo box,
Radio button Text area
Password box Submit button, and
File input Reset button
Q14: Write HTML code to create a form with all basic input elements?
Ans:
<form>
Name: <input type=”text” name=”first name”> <BR>
Password: <input type=”Password” name=”Password”> <BR>
Gender:
M <input type=”radio” name=”G” > F <input type=”radio” name=”G” > <BR>
Subject:
Maths: <input type=”checkbox” name=”S1” >
English: <input type=”checkbox” name=”S2” >
Science: <input type=”checkbox” name=”S3” > <BR>
City:
<select name=”City” >
<option> chadigarh<option>
<option> Kolkata<option>
<option> Bhopal<option>
<option> Patna<option>
<select>
<BR>