User stories needing completion

Hi I’m almost done my product landing page. Here are 2 user stories I’m not quite sure what to do with.

  • User Story #10: The #email input field uses HTML5 validation to confirm that the entered text is an email address.

  • 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) that confirms the email address was entered and that it posted successfully.

Do you have any idea how to do this?

For #10 you should just add a required property for the input field. This is treated as HTML5 validation. Read more about this here.

For #12 you should send the user to the specified url when the form submission is correct. Also, read more about this topic here (look at the form action attribute).

thanks for the simple explanation

1 Like

Your welcome :wink: Good luck on your journey!