Design comparison
Solution retrospective
Hey guys! This is my solution for the QR code component project and I would really appreciate your feedback or suggestion on how I should tackle this component. I created this project in the most simple manner to get familiarize with the fundamentals of HTML and CSS. Let me know on how I could have execute this better using good coding practices, thanks!
Community feedback
- @0xabdulkhaliqPosted over 1 year ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have other recommendations regarding your code that I believe will be of great interest to you.
QR iMAGE ALT TEXT 📸:
- The QR Code Component involves scanning the QR code, the image is not a decoration, so it must have an
alt
attribute which should explain the purpose of theimage
.
- The
alt
withQr Code
is not even explaining for what the QR image need to be used.
- So update the
alt
with meaningful text which explains likeQR code to frontendmentor.io
- Example:
<img src="/images/image-qr-code.png" alt="QR code to frontendmentor.io">
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
Marked as helpful0@diazrainierPosted over 1 year ago@0xAbdulKhalid Hi Abdul! thank you for your feedback, will consider this way of being descriptive when it comes to the purpose of the image.
0 - @joshjavierPosted over 1 year ago
Hello Rain 👋
First of all, congrats on submitting your first solution! You're off to a good start; the layout looks good on both mobile and desktop, and your code is well-structured and readable.
Some ideas on what you could improve:
-
Use semantic HTML tags to improve accessibility and help with SEO. For example, you can put the container div inside a
<main>
tag and the attribution div inside a<footer>
tag. -
I also recommend adding an H1 because it tells search engines and screen readers what your page is about. In this case, the H1 can be
<h1>QR code component</h1>
. You can use a.visually-hidden
utility class to add the H1 without showing it visually so your code remains accessible without deviating from the design.
Hope it helps, happy coding!
Marked as helpful0@diazrainierPosted over 1 year ago@joshjavier Hi Josh! thank you for your feedback, will definitely consider adding this recommendations
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