Tuesday 29 November 2011

HTML Tutorial - 5

How to create simple drop-down list in Html Script ?

Solution :
Step 1: Go to Notepad.
Step 2: Copy the HTML script below to the notepad.


<html>
<body>

<form action="">
<select name="Mobiles">
<option value="nokia">Nokia</option>
<option value="samsung">Samsung</option>
<option value="reliance">Reliance</option>
<option value="mts">MTS</option>
</select>
</form>

</body>
</html>

Step 3: Now save the file with .html format.
Step 4: Close the notepad and now open the saved file in your default browser .

That's it ! 
You will see like the below picture when you click on the drop down list.

You can select any one of the option !

No comments:

Post a Comment

Newest