Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Intro component using CSS grid, vanilla javascript, and Netlify forms

Hannah 655

@hannah-saurusrex

Desktop design screenshot for the Intro component with sign-up form coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Curious how to ensure all email addresses include "@blank." com, org etc.

Community feedback

@tjenkins

Posted

If you set type="email" for the email input element, the browser will check that the user entered a valid email address automatically. You can then use the :valid and :invalid CSS pseudo-classes to style the input accordingly.

More info here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email.

Hope that helps!

1

Hannah 655

@hannah-saurusrex

Posted

Awesome, thanks for the tip. that did the trick!

0
P
Matt Studdert 13,611

@mattstuddert

Posted

Great work, Hannah! To keep the custom validation styling you could use Regex in your JavaScript to check for a valid email format. Here are a few possible solutions on StackOverflow. I would recommend using type="email" on the email input though, to be sure the email-specific keyboard pops up for mobile users.

0

Hannah 655

@hannah-saurusrex

Posted

Awesome, thank you. Looks like type="email" did the trick! :)

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord