Passing 15/16 tests and don’t know what I am missing

My code pen link is below:

Any help would be very welcome.
Thanks
Simon

If you click on the red button, it will show you the error message:

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

The .nav-link with href="#home" is not linked to a corresponding element on the page : expected null to not equal null

AssertionError: The .nav-link with href="#home" is not linked to a corresponding element on the page : expected null to not equal null

When I look at your nav links:

        <a href="#home" class="nav-link">Home</a>
        <a href="#courses" class="nav-link">Courses</a>
        <a href="#showvideo" class="nav-link">Video</a>
        <a href="#prices" class="nav-link">Prices</a>
        <a href="#contact" class="nav-link">Contact</a>

I see that the first two don’t point to any spot in the page, i.e., there are no elements with those ids.

When I fix that, the page passes for me.

Soooo obvious :laughing:
It was staring at me and I did not see it.
Well thanks to you Kevin, very kind.
I will not forget that lesson any time soon.
Regards
Simon

1 Like

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