Tell us what’s happening:
I did everything but I’m stuck on story #5, " When I click a .nav-link button in the nav element, I am taken to the corresponding section of the landing page. "
Can someone pls help me figure this out?
Your code so far
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36.
Challenge: Build a Product Landing Page Link to the challenge:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
Hey Mohamed, it looks like you forgot to include the class in the same HTML element as the href. So I would remove class from
<li> and move it with the
<a>s. Like so…
<li><a class="nav-link" href="#home">Home</a></li>
Also, just an fyi, you can format your code in Codepen by pressing the arrow on the top right of the boxes and select format html. Best of luck to you!