Hey there people!
I’m continuing with the projects and I find a little problem when solving the Landing Page with the next:
User Story #5: When I click a .nav-link
button in the nav
element, I am taken to the corresponding section of the landing page.
Currently, I have this in my code:
<nav id='nav-bar'>
<ul class='nav-list'>
<li class='nav-link'><a href='#preview'>Preview</a></li>
<li class='nav-link'><a href='#services'>Services</a></li>
<li class='nav-link'><a href='#models'>Models</a></li>
<li class='nav-link'><a href='#contact'>Contact Us</a></li>
</ul>
</nav>
After which I have 4 elements, each with the correspongin id=’’ attribute. Still, I get an error.
What could be the problem?
Thanks in advance!