Product Landing Page submit button not working properly

I’m currently trying to build a Product Landing Page as my third Responsive Web Design project.
For now, I’m just building the page with random placeholders, but I got stuck on the submit button for the email address.
The tests keep failing for user story #12 (When I click the #submit element, the email is submitted to a static page (use this mock URL:
I’m not quite sure what exactly the issue is. I’ve been trying different things I found on google and all of them have failed. Any idea what’s causing this?

Here’s the code I have so far:

<form id="form" action="">
    <input type="email" id="email" placeholder="Enter your email" required>
    <input type="submit" id="submit">

Can we have the link to your CodePen? It’s significantly easier to debug this stuff when I can view the error messages the tests are throwing.

…Random placeholders, as I said. :eyes:

below the failed tests there is the reason why they are failing (there can also be more than one reason, but only one is shown at a time)

look there to find what to fix

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

Add a name attribute to your <input>. :slight_smile:

1 Like