Submitted 11 months ago
Base Apparel coming soon page - Flexbox / JS DOM
@aazs-edu
Design comparison
SolutionDesign
Solution retrospective
- placing background pattern is tricky.
Community feedback
- @bccpadgePosted 11 months ago
Hello @aazs-edu. Congratulations on completing this challenge!!!π
I have a few tips you might be interested in to improve your solution.
HTML π:
- To improve accessibility, wrap your code below in
<form>
<div class="email-input"> <input type="email" placeholder="Email Address" /> <img class="invalid-icon hide" src="images/icon-error.svg" alt="icon-error"> <button id="submitBtn"><img src="images/icon-arrow.svg" alt="" /></button> </div> <div class="invalid-feedback hide"> <p class="invalid-feedback-msg">Please provide a valid email</p> </div>
The arrow and error icon are decorative which means you can leave alt attribute blank and add
aria-hidden:true;
so it can be ignored by screen readers.More infoπ:
<div class="img-box"> <img class="hero-desktop" src="images/hero-desktop.jpg" alt="hero" /> </div>
Mobile and hero images must have more descriptive alt text.
Example:
<img class="hero-desktop" src="images/hero-desktop.jpg" alt="a woman in orange shirt standing in front of a green tree and red wall" />
Here is my solution to this challenge Base Apparel Coming Page
Hope you find this useful and don't hesitate to reach out if you have any questions
Marked as helpful3 - To improve accessibility, wrap your code below in
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