Intro component with sign up form validation

Solution retrospective
At first, it was tricky to recall how to write form validation logic in JavaScript. I know it's very simple, but even that takes time when you're out of practice :)
Please log in to post a comment
Log in with GitHubCommunity feedback
- @thisisharsh7
Hey, awesome work on this challenge! Your js validation logic is clear and working well.
Some suggestions:
- Instead of repeating error message
<p>
tags after each input, you could generate them dynamically in JS. - Consider using
<label for="...">
with each input for better screen reader support. - You can improve validation using html attributes (
type="email"
) along with regex.
Overall a good work - happy coding!
Marked as helpful - Instead of repeating error message
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