In this exercise I tried every possible way to pass the test for.
-
Each
.nav-link
element should have anhref
attribute. -
Each
.nav-link
element should link to a corresponding element on the landing page (has anhref
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.