Having trouble with #12 of Building a product landing page

Having trouble with #12 of Building a product landing page. Can someone tell me what I’m doing wrong? This is my code pen below

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

Read the full error message.

The #form should have an action attribute : expected false to equal true

Create a Form Element

<form action="https://www.freecodecamp.com/email-submit"> 
  <input 
         type="text" 
         id="text"
         name="text"
         placeholder="questions?"
         required>
  
  
  <input
         type="email"
         id="email"
         name="email"
         placeholder="what is your email?"
         required>
  <input 
         type="submit" 
         id="submit"
         value="inquire now"
         class="submit">

  </form>

Thanks, I’m still having an issue, this is the code above, how do i have the action attribute reflect expected false to equal true?

The #form should have an action attribute : expected false to equal true

The form element with the id form is the one that needs the action attribute (the test checks it using the id). You have two form elements, you should only have one and it should contain all the form elements. That one form element should have the id and action on it.

That worked, thanks!

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