Tell us what’s happening:
Why can’t I get this to work?
User Story #5: When I click a .nav-link button in the nav element, I am taken to the corresponding section of the landing page.
Your code so far
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.
Link to the challenge:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
The error says:
AssertionError: The .nav-link with href="
#pricing" is not linked to a corresponding element on the page.
Do you have an element with id=“pricing” to which the .nav-link with href="
#pricing" points to?
All I need to say for myself.
stuck too long on other stuff didn’t see that one…
Old thread but, I was just having the same issue. Turns out, you have to make sure the element with id = pricing matches the href =#pricing. You have to check the spelling and case sensitivity of the href=#pricing and the id=pricing…Make sure both matches exactly.