Hello. I have just started learning 2 weeks ago about html and css and this website is great. Now I’m facing an issue. In the product landing page test. 15th part of the test with the click the “nav-link” to take me to a section of the page. I did it in this way and when I click it takes me to the page sections but the test doesn’t let it go through and since I’m relatively new I have no idea what to do cause that is the only way I know how to do it.
<nav id="nav-bar"> <ul> <li class="nav-link"><a href ="#works">How it works</a> </li> <li class="nav-link"><a href ="#services">Services</a> </li> <li class="nav-link"><a href ="#pricing">Pricing</a> </li> </ul> </nav>
This is the how I made it and it works but the test says it is an error.
Here is the codepen. I didn’t focus that much on appearance so it might look a bit ugly though also cause I used an image as a bg and am too lazy to include it.