0

How do i link options in my navigation bar to some other options on same page?

I am trying to link options like Home, Pricing, How it works, portfolio in my <nav> to a more explanatory clickable options on the page. For example, if I click on Pricing in the navigation bar, I should be directed to another parts of same page where more Information will be provided.

18th Mar 2019, 6:31 PM
Moshood Aderibigbe
2 Answers
+ 1
//You can use <a> tag on this purpose to link another document https://www.sololearn.com/learn/HTML/1031/ <nav><a href=".. /priceinfo.html>Pricing </a></nav>
18th Mar 2019, 6:48 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
If guessed correctly you should use ids. For exemple : <Nav> <a href=#pricing> Price </a> </nav> Would link to a <div id="pricing"> blabla </div> in an other part of the same page (I used a div but any kind of tag element would do)
18th Mar 2019, 6:54 PM
Dyf Dyf
Dyf Dyf - avatar