Design comparison
SolutionDesign
Solution retrospective
All feedback is welcome!
Community feedback
- @vanzasetiaPosted over 2 years ago
Hello, Lucas! π
Congratulations on finishing this challenge! π
Some recommendations from me.
- I recommend validating the email with Regular Expression (RegEx). The native HTML validation for the email is considered
a@a
as a valid email address. - Avoid using JavaScript to add styling (unless you've no other option). JavaScript allows you to change the CSS code using the
style
property. But, to make debugging easier and improve code maintainability, itβs best to avoid it. Use CSS classes instead for all the styling. - I recommend using all classes begin with
js-
to select DOM elements within the JavaScript. This will separate the styling and the functionaility. Keep in mind, that only use thejs-
classes only for JavaScript purposes.
// Example const form = document.querySelector(".js-form");
That's it! I hope this helps. π
Marked as helpful0@lu0teroPosted over 2 years ago@vanzasetia Thanks for the advice! It helps me a lot! In future challenges I will use the "js-" to select DOM elements!
0 - I recommend validating the email with Regular Expression (RegEx). The native HTML validation for the email is considered
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