Ask coding questions

← Back to all posts
I need help with my project
RubenUSA (0)

i need help making a drop-down menu or drop-down list i just need to know how to make any one of the list/menu.

Commentshotnewtop
Vandesm14 (530)

You can use the vanilla HTML <select> element

<select>
<option>Option1</option>
<option>Option2</option>
<option>Option3</option>
</select>
RubenUSA (0)

@Vandesm14 thanks for the help i appreciate it if not to much to ask how do now make the drop-down list linkabl to a new page in HTML file ?.

mwilki7 (194)

@RubenUSA Try adding <a> to the existing code:

<select>
<option><a href="yourfile1.html">Link1</a></option>
<option><a href="yourfile2.html">Link2</a></option>
<option><a href="yourfile3.html">Link3</a></option>
</select>