Design comparison
Solution retrospective
I'm still struggling with JavaScript and would like some feedback on my form validation. I watched Florin Pop's video to help guide me with it. This is also my first time using SASS and would appreciate any feedback you could give me on it!
Community feedback
- @abe-m1Posted about 4 years ago
Hi Gabriela, great job on the JavaScript, I noticed a few things,
- The HTML would look cleaner if there were no empty elements (<small> tags)
In my solution to this challenge, I tried not to have any empty elements in the HTML, so if there is an error I created a new element with the error message and appended it to the DOM.
It is hard to describe it in words, but if you look at my JS solution the code is commented.
- The SCSS looks good.
There are two things that I implemented in my code which I find useful. I used BEM notation, so I could nest selectors in a way that was more readable .
Also I used a Mixin for media queries, which lets me nest the media queries directly inside the CSS declarations instead of having one large media query at the end of the file.
Marked as helpful1
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