Product Landing Page - need to pass the tests!

Hi guys!

I have been working away at the Product Landing Page and looking to solve the last tests.
I have 14/16

I am failing in Content
5 & 12

5. When I click a .nav-link button in the nav element, I am taken to the corresponding section of the landing page.’

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).

I have added the JS test script for reference.

https://zenidith.github.io/product-landing-page/

thanks for any advice.

I haven’t tested it, but just from looking…

#5 Each .nav-link element should have an href attribute
Currently your .nav-links are buttons and do not have a href attribute, but the elements within them do.

#12 The #email input should have a name attribute
Pretty self explanatory. Your #email is missing a name attribute.

sorry, I chose the wrong test and stated the incorrect tests that I failed.

I have now updated my post correctly.
my code is here:

I realized that before I posted. Below the test that you fail, it gives you an additional message to help you see why it’s failing. My reply includes the message given for test #5 and #12 and the explanation why it’s failing.

t hanks

very oddly, the script was failing tests when i was running the page locally. however when i put on Github pages, the tests passed…
unsure why.

anyway, glad that I improved my skills a little.
Let’s continue to support one another.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.