Product Landing Page #5 Help

Okay so I keep getting the “Each .nav-link element should have an href attribute : expected false to equal true” errors on my project but I’m not sure what I’m doing wrong. I’ve tried a bunch of different changes and even looked at the sample project code to compare. I must be missing something but I can’t seem to figure out what it is. Any help is appreciated! And yeah it’s not fully done yet haha so I still have to finish formatting everything.

Here’s my pen

Don’t know if it helps but if you are using codepen try using the Analyze Css and Analyze Html options that will give you hints. When I did that on your code it pointed out that you have selectors in your CSS that are not referencing a .class or #ID. such as Home , Contact, etc.

edit those options are in the dropdown arrow in each code editing window.

1 Like

Put the class attribute in the a and not the li element

Thank you! I feel so silly now, that was one of the few things I didn’t try lol!

Did same. Felt same. Guess it’s a common beginner issue. Happy Sunday!

1 Like