Product Landing Page - User Story #12

I am not sure which part of my code is wrong. Does anyone have an idea and how to fix it? Thanks

> <form id="form" action="https://www.freecodecamp.com/email-submit">
>     <input id="email" type="email" placeholder="email">
>     <input id="submit" type="submit" value="submit">
>   </form>


https://codepen.io/hin1129/pen/KKqQWZG

The entire error is saying:

When I click the #submit element, the email is submitted to a static page (use this mock URL: https://www.freecodecamp.com/email-submit).

The #email input should have a name attribute : expected false to equal true AssertionError: The #email input should have a name attribute : expected false to equal true

It’s telling you what the problem is: “The #email input should have a name attribute”. When I fix that, that test passes.

1 Like

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