How to Create a Drop Down List on a Web Page

By Spencer Baselice

Rate: (0 Ratings)

Creating a drop down menu is a simple way to get more choices onto your page. It is also rather simple to program and can be done with a few new tags, <select> and <option>.

Instructions

Difficulty: Moderately Easy

Things You’ll Need:

  • Computer
  • HTML skills
  • Web page
  • Notepad

How to Create a Drop Down List on a Web Page

Step1
Open your web page in a text editor and decide where you want to drop down menu to go.
Step2
Type in the tag <FORM> and enter a name for the form like this, <FORM NAME=DDMENU>.
Step3
Enter the drop down tag <select> below the form tag, then give it a name value like this, <select name="drop-down-example">.
Step4
Add the values which will appear in the drop down list or the "options" using the <option> tag, like this: <option value="first">First choice</option><option value="second">Second choice</option><option value="third">Third choice</option>.
Step5
End the drop down list by typing in the </select> tag and complete the form with the </FORM> tag.
Step6
Add items as necessary to your drop down menu. Then add any actions you want the menu to perform using your chosen method.

Tips & Warnings

  • Drop downs can be part of a form, or if selected can perform certain actions like drawing information from a database or spreadsheet and displaying it on a web page. These are defined by adding tags to the list, and sometimes using JAVA code and database plug ins which must be installed on your web server.

Post a Comment

POST A COMMENT

Request a New How-To Article

Looking for more How To information? Chances are there’s an eHow member who knows how to do what you’re looking to do. Submit an article request now!

eHow Article: How to Create a Drop Down List on a Web Page

eHow Member: Spencer Baselice

Spencer Baselice

Novice Novice | 0 Points

Category: Internet

Articles: See my other articles

Related Ads

Internet

Veesites
Meet Virginia DeBolt eHow’s Internet Expert.