How to Write HTML for a Drop-Down Button
- 1). Log in to your Web server.
- 2). Locate the HTML page on which you will include the drop-down button.
- 3). Click your cursor in the section of the page where you want to place the drop-down button. This will be somewhere in between the opening <body> and closing </body> tags.
- 4). Insert the following code:
<form name="myform" method="POST">
<div align="center">
<select name="mydropdown">
<option value="Milk">Milk</option>
<option value="Cheese">Cheese</option>
<option value="Bread">Bread</option>
</select>
</div>
</form> - 5). Replace "Milk," "Cheese" and "Bread" with the options you want to appear in the drop-down menu.
- 6). Publish the page.
Source...