Hello everyone,
thanks for your time and help. I can’t finish the user stories , 3 left:
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.
(User Story #12: When I click the #submit element, the email is submitted to a static page (use this mock URL: https://www.freecodecamp.com/email-submit) that confirms the email address was entered and that it posted successfully.)
(User Story #15: My product landing page should utilize CSS flexbox at least once.)
Link: https://codepen.io/anon/pen/oyKNGX
Story 5: you need to create a navigation with jump links and add sections to your page
Story 12: you need to add attributes to your form tag
Story 15: You need to use flex box in your CSS
After seeing the reference page navbar code, I thought that I should move my class declarations from my <li> elements to my <a> elements. I tried this and not only was I still not able to pass the user story 5 test, my navbar lost the ability to navigate to other sections of the page.
and here’s the reported user story 5 error details:
AssertionError: Each .nav-link element should have an href attribute : expected false to equal true
In your case, the test is looking for ‘href’ inside the ‘nav-link’ element.
Your nav-link element is a li and is not an href…
And your href element is not a ‘nav-link’ element.
So … now you know you need to make each href element a nav-link element to pass…