Program Code – Drop down list box

This code is written as normal HTML (HyperText Markup Language). It works on any browser. It doesn’t need javascript or VBScript to show list options in output.

<html>
<head>
<title>Dropdown List</title>
</head>
<body>
<form ><!-- The HTML form tag is required when you want to collect information that visitors provide. For example, you may want to collect specific data from visitors, such as name, email address, and password.   -->
<h1> Using Drop Down List box </h1>
<br>
<br>
Major Dishes <SELECT NAME="txt1" multiple =true>
	<OPTION>Dosa
	<OPTION>Idli
	<OPTION>Upma
	<OPTION>Puttu
	<OPTION>Uttapam
	<OPTION>Pongal
	</SELECT>
Stocks Available <SELECT NAME="txt2" multiple =true>
	<OPTION>10
	<OPTION>20
	<OPTION>25
	<OPTION>10
	<OPTION>20
	<OPTION>30
</SELECT>
Soft Drinks Available <SELECT NAME="txt3" >
	<OPTION>Appy Fizz 
	<OPTION>Slice 
	<OPTION>Sprite 
	<OPTION>Frooti 
	<OPTION>Coca-cola 
	<OPTION>Maaza
</SELECT>
<!-- 
The option tags are used for to show a item of the list. Then the select tag used for to select an any one option from the option list
  -->
</form> 
</body>
</html>

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.