+ 1
What's being asked of me here?
I'm doing the Landing Page Project on FCC and been stuck on this problem for months, not understanding what exactly is wanted of me to do. https://codepen.io/bopcho/pen/GRMderM And I get the following message: 5. When I click a .nav-link button in the nav element, I am taken to the corresponding section of the landing page.'
2 odpowiedzi
+ 1
You didnt place good href to your a tag
For linking section in same page we use id-s
<a href="#idOfSection">Link</a>
<div id="idOfSection"></div>
here idOfSection can be any name you wanna, probably fcc test case ask for specific to check our code
You need to place id to your href, then when user click at this link browser will show section with this id.
So href dont need to be some other website or some local file, it can also be used in this way