Product Landing Page - Build a Product Landing Page

In this exercise I tried every possible way to pass the test for.

  1. Each .nav-link element should have an href attribute.

  2. Each .nav-link element should link to a corresponding element on the landing page (has an href with a value of another element’s id. e.g. #footer ).

<nav id="nav-bar"> <ul> <li><a class="nav-link" href="#features">Features</a></li> <li><a class="nav-link" href="#video">How it Works</a></li> <li><a class="nav-link" href="#gallery">Gallery</a></li> </ul> </nav>

kindly help me figure out what is wrong with my code. The code is working but still I am not able to pass the test.

Welcome to our community!

Post the entire html and css code here.

Thank you for your reply, I figured it out, the issue was I used the same navigation id and class in the header and the footer. once I deleted the nav from the footer it stated to work.

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