Design comparison
SolutionDesign
Solution retrospective
HI Y'LL OPEN TO FEEDBACKS ESPECIALLY TO IMPROVE MY JS EMAIL VALIDATION PROCESS
Community feedback
- @VCaramesPosted almost 2 years ago
Hey there! 👋 Here are some suggestions to help improve your code:
- Your
EventListener
should be on theform
and it should be asubmit
not aclick
, since the user is submitting their email.
More Info:📚
Click vs. Submit EventListeners
- The logo, intro heading and paragraph should all be wrapped inside the
header
element. Theheader
should also located outside themain
element.
- Your
email input
, “error message" andbutton
needs to be wrapped inside aform
and have a visibly hiddenlabel
attached stating something like "please enter an email…" for improved accessibility.
More Info:📚
- The “illustration” in this component serve no other purpose than to be decorative; it adds no value. Its
alt tag
should be left blank and have anaria-hidden=“true”
to hide it from assistive technology.
More Info:📚
https://www.w3.org/WAI/tutorials/images/
- The social media icons should have a
aria-label
to improve accessibility.
If you have any questions or need further clarification, feel free to reach out to me.
Marked as helpful0@VCaramesPosted almost 2 years ago- Your
CSS Reset
is being underutilized. To fully maximize it, you will want to add more to it.
Here are some examples that you can freely use:
- NEVER ❌ do this as it creates accessibility issues for users and it is outdated.
html { font-size: 62.5%; }
- For improved accessibility 📈 for your content, it is best practice to use
em
formedia-queries
. Using these unit gives users the ability to scale elements up and down, relative to a set value.
Marked as helpful0 - Your
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