Design comparison
Community feedback
- @MelvinAguilarPosted over 1 year ago
Hello there 👋. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
- The
alt
attribute should not contain the words "image", "photo", or "picture", because the image tag already conveys that information.
-
The
alt
attribute should explain the purpose of the image. Uppon scanning the QR code, the user will be redirected to the frontendmentor.io website, so a betteralt
attribute would beQR code to frontendmentor.io
If you want to learn more about the
alt
attribute, you can read this article. 📘.
- Use
min-height: 100vh
instead ofheight
. Setting the height to 100vh may result in the component being cut off on smaller screens, such as a mobile phone in landscape orientation.
I hope you find it useful! 😄 Above all, the solution you submitted is great!
Happy coding!
Marked as helpful1@oliveiratalesPosted over 1 year agoHello Melvin,
Thank you for the tips, already change the tags "alt" and "min-height" in the project, and I will use it for my next projects.
Best regards, Tales.
0 - The
- @super-simonPosted over 1 year ago
Hello!
My advice is to make layout of the blue square with circles, and insert only the QR code as an image. In real project, back-end will generate a QR code without background.
1@LizCodeStoriesPosted over 1 year ago@super-simon
Hi!
And thank you for your helpful advice :)
1
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