[2nd] Sign-up Form w/ CSS grid, JS - Newbie

Solution retrospective
Redone this project after feedbacks for 1st challenge. Any feedbacks/improvements are welcome.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @A-amon
Hello! Looks great~ It's responsive too.
I have a few suggestions for you 😀:
-
Why do you have wrap a line inside h1 with span tag?🤔 You can try using br tag to break the line of the same sentence. (Don't abuse it tho! Check out https://forum.freecodecamp.org/t/should-you-ever-use-the-br-tag/440252/2 for how to use it semantically.)
-
Try to not set styles directly in JS if possible. Add/remove or toggle class instead. E.g. Adding .error class to show error-related styling.
-
Instead of having an unused empty label, set the aria-label attribute on input element. (Doing this allows you to remove the label element)
-
The alt text for your error icon might not be appropriate 🤔, because imagine if the screen reader reads out "Exclamation" or something else to users. Maybe, "Warning", etc. would be better. Or if you wish to hide it, just leave the alt empty. Check this out: https://dev.to/nadiarasul/do-icons-need-alt-attributes-5g52
Marked as helpful -
- @ChamuMutezva
Nice work, the validation can be improved such that when correct data is entered whilst typing the error disappears. See this solution that impressed me this week solution
- you do not need to resubmit your solution when you make changes to your code. As long as you update you repository then everything will be ok, you can generate another report if you want to see if some errors on this site has been cleared
Marked as helpful
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