Product Landing Page FreeCodeCamp problem

Hi, I have difficulties completing the challenge, that the nav-links should lead to the linking section. I would appreciate it, if you look at my code and say what’s wrong.

Hello there! I believe I found your solution and it’s actually one I made when I was doing this project.
When running the tests for the project CodePen is looking for the Nav-Link class to have an Href attribute.
In your HTML right now you have them in different elements.

The simple fix is to move the ‘class=“nav-link”’ into the ‘a’ element.

From this:
<li class="nav-link"><a href="#form">Newsletter</a></li>
To this:
<li><a class="nav-link" href="#form">Newsletter</a></li>

Once done for all of your nav links it should run correctly!

Thank You! It worked with your solution.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.