Design comparison
Solution retrospective
Hello there! Finished this challenge, a simple one, but helped me to learn more about centralizing, so it was a good one!
If you have any feedbacks, I would love to hear it!
Community feedback
- @VCaramesPosted almost 2 years ago
Hey there! 👋 Here are some suggestions to help improve your code:
- FEM Best practice ✅, before moving on to the next challenge, always check your FEM report (It provides value information), to see what is incorrect and update your code with it so that you would not make the same mistake over again. This should be the first thing that should be done ⚠️ right after submitting the challenge.
- Every site should ALWAYS have ✅ a
main
element not only for semantic purposes but also to help assistive technology find the main content of your content. For this challenge, it will serves as the component’s container ⚠️.
More Info: 📚
- The
alt tag
description for the “QR image” needs to be improved upon ⚠️. Its needs to tell screen reader users what it is and where it will take them to when they scan it.
- Change ⚠️
width
tomax-width
in your component’s container to make it responsive.
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding! 🎆🎊🪅
Marked as helpful1 - @HassiaiPosted almost 2 years ago
Replace <div class="container"> with the main tag, <div id="improve"> with <h1> to fix the accessibility issue. click here for more on web-accessibility and semantic html
To center .container on the page using flexbox, replace the height min-height: 100vh. Give the img a width of 100% instead of height value.
Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful1@miporinsPosted almost 2 years ago@Hassiai Thanks a lot for your feedback! Will study more about the points mentioned 😁
0
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