Hi!
Now, I make a top navbar and everything is perfect. but when I click to any word in the navbar nothing appear related to this word …
So, I need help to do that. I coded using codepen.
How to do that .
Thanks in advance!
You have referenced your link with to the id
, but you haven’t used the id
in any of the sections
1 Like
How?
Do you have any resource to help me with this part?
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#use">Use</a></li>
You have these id’s on the links referencing, but for the links to navigate the page, you need a section referencing that link,
Ex: For #home
, you should have an id to a section as <section id="home">
, therefore when home is clicked it navigates to this section
1 Like
Perfect!
It works. Thanks a lot.