Submitted about 5 years ago
Base Apparel coming soon Sass | Grid | Vanilla Js email validation
@cosimocollini
Design comparison
SolutionDesign
Community feedback
- @mattstuddertPosted about 5 years ago
Nice work on this challenge! Here are a few pointers after taking a look at your code:
- I'd recommend using an actual
form
for the email input. You've currently got aninput
element with an anchor tag triggering the submission event. Instead, I would go with this kind of structure, as it's more semantically in-line with the content:
<form> <input type="email"> <button>Submit</button> </form>
Obviously, the button wouldn't necessarily have the word "submit" in it for this layout though.
- As you don't have a
label
paired up with theinput
I'd also recommend adding anaria-label
attribute to theinput
to make the form field accessible to screen reader users.
I hope these pointers help. Let me know if you have any questions!
0@cosimocolliniPosted about 5 years ago@mattstuddert Thank you!! Your corrections help me a lot.
0@mattstuddertPosted about 5 years ago@cosimocollini you're welcome! Happy to help 🙂
0 - I'd recommend using an actual
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