Not passing tests for landing page-please help

I am unable to find the issue with my code. `


What We Do

I keep getting an error passing test #5 - When I click a .nav-link button in the nav element, I am taken to the corresponding section of the landing page.

I’ve set height in css to 50vh just to show movement in the browser (Chrome) to make sure it was but still cant get pass it.

If you post a link to a codepen someone will probably be able to help you.

Its not in codepen yet. I run everything through VScode first then copy to Codepen.


<header id=“header”>

<nav id=“nav-bar”>

<img src="#" alt=“logo” id=“header-img”>


<li class=“nav-link”><a href="#about">About</a></li>

<li class=“nav-link”><a href="#service">What We Do</a></li>

<li class=“nav-link”><a href="#pricing">Pricing</a></li>




<section class=“container” id=“about”>About</section>

<section class=“container” id=“service”>What We Do</section>

<section class=“container” id=“pricing”>Pricing</section>

<script src=“”></script>


Does class nav-link go on the <li> or on the <a> ?

1 Like