How can i link dropdown option to only one page? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can i link dropdown option to only one page?

I create nav bar and there is dropdown menu. I wanted to connect all dropdown button to only one file of HTML. please help me

25th Dec 2017, 9:06 PM
Amna Naveed
Amna Naveed - avatar
4 Answers
+ 2
I created a short code to show you an example of a navigation menu in mobile style. PLEASE NOTE(if you are in desktop), that the submenu opens, when you hover the collection listitem, this is necessarry cause i don't know if you are using mobile vor desktop to view my code. https://code.sololearn.com/WF6FlaY4MHq8/?ref=app
25th Dec 2017, 10:32 PM
luk.faber
luk.faber - avatar
+ 2
Link all <a> options with the same href attribute?! I don't completely understand, what you are trying to do.
25th Dec 2017, 9:29 PM
luk.faber
luk.faber - avatar
+ 1
I mean to say that I have created nav bar with 4 option like HOME,ABOUT,COLLECTION ,CONTACT and there is one dropdown menu for COLLECTION. am asking I don't want to create more HTML pages of dropdown thats why I want to connect all dropdown option with one HTML page.. like in COLLECTION there are 4 option Clothes,Shoes,Bags,Beauty. I want to put all item in one page and connect each to same page.. now u got me?
25th Dec 2017, 9:38 PM
Amna Naveed
Amna Naveed - avatar
+ 1
thanks for create it for me 😊 . I already created nav bar. I will show my code tomorrow bcz am using it from mobile and code is not with me.
25th Dec 2017, 10:39 PM
Amna Naveed
Amna Naveed - avatar