Tell us what’s happening:
When i open the website, the nav bar links link to their sections of the page, but the test keeps failing it. it says " each .nav-link element should have an href attribute: expected false to equal true"
Had to take out most of the code to post it, but each section has a corresponding id and it functions as it should when opened in browser.
Why is the anchor surround the li instead of the other way around? That might be screwing up the test because it looks in the element that has .nav-link and can’t find the href - I’m not sure if it has to be on the element or a child, but parent wouldn’t work. You might be able to move that class to the anchor, or you may need to invert the order, or both.
i originally had it reversed so it was (li a ) but tried this to make the whole (li) a clickable link to see if it works but it didn’t. how would you write the href inside the (li) bracket? would it be li class=“nav-link” href= etc or do you need an a in there
As I was guessing before, it appears that that “nav-link” class needs to be on the link itself, not the li. When I move them to the anchor, it passes for me.