Product Landing Page-href not linked error

Hi,

I am having a problem with the test 5:

5. When I click a .nav-link button in the nav element, I am taken to the corresponding section of the landing page.’

The output error is:
“…
'The .nav-link with href=”’+e.getAttribute(“href”)+’" is not linked to a corresponding element on the page "

I know that I am new to programming however I am not able find where the problem is.
I already put a big image to be certain that I am being sent to other places on the page.
Can someone help me?

My code pen project:
https://codepen.io/filsant-pt/pen/wvKwwYX

I see Each .nav-link element should have an href attribute
do they have an href attribute?

2 Likes

WoW It was so simple.

I really thought that since it was an element within the element with the .nav-link it would work.
By some reason I had the idea that I already did a test in the same conditions and it passed and I got stuck on that.

Really, thank you.

Thank you