Contact form

Solution retrospective
How to style radio and checkboxe with SVG?
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@nataliesmyth
Great job! your solution looks exactly like the design we were given, very impressive. The only thing I would fix is the email validation. Your form validates if the email is filled out, regardless of if it's a valid email. You can use regex to check for certain requirements, and use that every time someone enters an email:
const emailIsValid = email => { return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email); }
something like that. Great job again!
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