HTML code for generating the form as shown below..

Lab Course 2 / Exercise 3 / Set A /

<html>
<form name="Icecream">
<br>
<br>
Choose your favourite icecream flavour
<select name="icecream" size="4"> 
<option>Vanilla
<option>Pistachio
<option>Chocolate
<option>Mango
<option>Santra Mantra
</select>
<br>
<br>
How would you like to have it ?
<br>
<br>
<input type="radio" value="CUP"> CUP
<input type="radio" value="CONE"> CONE
<input type="radio" value="BAR"> BAR
<br>
<br>
How many people would you like to serve ?
<input type="text" width="5"> 
<br>
<br>
Tell us something about your self
<br>
<textarea size="4" rows="2" cols="45">
</textarea> 
<br>
To clear the contents clicks.
&emsp;&emsp;<input type="reset">
</html>

Output :



Choose your favourite icecream flavour

How would you like to have it ?

CUP CONE BAR

How many people would you like to serve ?

Tell us something about your self

To clear the contents clicks.   

By Admin

Leave a Reply

Your email address will not be published. Required fields are marked *