When I click a .nav-link button in the nav element, I am taken to the corresponding section of the landing page but it doesnt pass the test 05

hi!can someone help me with this?
here is my code

From the test results:

Each .nav-link element should have an href attribute

This implies that it’s the <a> elements that should have the nav-link class, not the <li>

1 Like

oh thank you so much now it works!