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 with sign up form using HTML/CSS and Javascript

@brittjavs

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


Is there a way to validate properly validate the email in Javascript? Any feedback is welcome.

Community feedback

Saviour Essien• 15

@celebritydeveloper

Posted

Hello Britney, yes there is. Have you heard of Regular Expressions (RegEx) this is a better way to validate email in Javascript.

1

@brittjavs

Posted

@celebritydeveloper Thank you! I shall look into this.

0
Mahesh Yadav• 1,220

@Mahesh-yadav

Posted

Hi

For email validation, you can specify pattern=/RegEx/ attribute on email input element similar to required attribute. Browser will automatically ensure that entered email matches the given pattern.

For having greater control over error reporting, you can use Constraints Validation API.

I have implemented a basic custom validation in same project. You can see it here

0

@brittjavs

Posted

@Mahesh-yadav This is really helpful. Thank you!

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