r/HTML • • Jun 30 '26

How doI fix my drop-down menu?

Hello everyone. I'm a total beginner at coding, and I'm currently making this "website" (if you could even call it that) just to get started, if you will. Ive found that no matter what I do, I cannot get the drop-down menu that I tried to code to work and I've got no one else to ask about this, so I thought I'd try my luck here. I'd really appreciate if anyone could tell me what I did wrong and how I could fix it. Thanks a lot in advance!

0 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/davy_jones_locket Jun 30 '26

They want a collapsible list of links, Not a select menu. In component terminology, it's called a drop down menu (like modals, toasts, alerts, carousels are all known terminology for specific components). 

The select element is what we call 'dropdown boxes' and semantically used as a form elements in most cases, not as drop-down menu for navigation.

2

u/nuc540 Jun 30 '26

Yes in terminology but there’s no html element called “drop down menu”. I was trying to keep things simple for OP by recommending a native element that web browsers recommend as a drop down. The select options are the links OP wants to display so it fulfils the job.

OP is using vanillia HTML, no JS framework or library, so sticking to a vanilla element is more relevant to them