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.