Hi,
Please see the form code below:
<form id="form" action="https://www.freecodecamp.com/email-submit">
<h2>Missed out on our latest release? Stay tuned for our next drop!</h2>
<label for="fname">First Name</label><br>
<input type="text" id="fname" name="fname" placeholder=" "><br>
<label for="lname">Last Name</label><br>
<input type="text" id="lname" name="lname" placeholder=" "><br>
<label for="email">Email Address</label><br>
<input type="email" id="email" name="newsletter" placeholder=" " required><br>
<input type="submit" class="submit" id="submit">
</form>
Hi @argybisk !
Welcome to the forum!
What project is this?
Are you referring to a failing test for one of the FCC projects?
1 Like
Hi! its from Product Landing Page (https://www.freecodecamp.org/learn/responsive-web-design/responsive-web-design-projects/build-a-product-landing-page ). I also tried to use the âanalyze html codeâ button in CodePen to fix a few things here and there but that did not solve it.
I just read through the full error message and it tells you what the issue is and how to fix it.
Do you have a specific question about the error message. Particularly that second sentence? Cause that is where the answer is
OMG haha! I did read that but, I guess I did not actually READ that.
AssertionError: The #email elementâs name attribute should have a value of âemailâ : expected ânewsletterâ to equal âemailâ
From the last part I understood that either <name=âemailâ> or <name=ânewsletterâ> is correct and this is why I did not change it. Such a silly thing to get stuck to!
Thank you
system
Closed
September 3, 2021, 9:47pm
6
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.