Design comparison
Community feedback
- @vivekrajput-93Posted over 1 year ago
Hey Steve..Do you mind If I ask that do we have to just validate the email...I am little confused with the given instruction ...
1@peanutbutterjllyPosted over 1 year agohey @vivekrajput-93,
according to the challenge docs (should have these "error states"
-The input field is empty -The email address is not formatted correctly
) we should check that they can't submit an empty form/field and that it's formatted correctly as well - I'm guessing have an@
and a proper domain as well.luckily, html already has email validation baked in - so you won't have to write custom JavaScript validation (you can if you want to of course).
you can also use browser APIs that have validation methods built in already to do the heavy lifting for you (again, you can write them yourself if you wish):
cheers and good luck!
0
Please log in to post a comment
Log in with GitHubJoin 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