.nav-link issues with Product Landing Page

I am passing all but one test, “When I click a .nav-link button in the nav element, I am taken to the corresponding section of the landing page,” for the Product Landing Page project. I would greatly appreciate the help because this is driving me crazy.

Product Landing Page - Editor Pen

Read what the error says and then look at your .nav-link elements.

I have…and I’ve looked at other code. And I’ve looked at other people who have asked for help regarding the same topic. And then I decided to post.

Thanks for replying, but not particularly helpful.

1 Like

Not helpful would be to give you an exact answer without giving you chance to find the bug yourself.

Tests are looking for href Attribute on the Element with the class nav-link. In your case that element is a button which doesn’t have (and can’t have) the href attribute.

1 Like

That is extremely helpful, and I see your point- which I thank you for.

1 Like