Design comparison
Solution retrospective
Second Front-end Mentor project! The project helped me understand Flexbox better. Had fun doing this one, went on pretty smooth and fast. Please leave on suggestions of what I can improve. Thanks!
Community feedback
- @VCaramesPosted about 2 years ago
Hey there! 👋 Here are some suggestions to help improve your code:
-
Delete the
max-height: 470px;
from the component's container, as it is not needed. -
The
Picture
element is not needed for this challenge. -
Change
width
tomax-width: 100%
in your image to make it responsive. You will also want to remove theheight
as it is unnecessary. -
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.
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding! 🍂🦃
Marked as helpful1 -
- @vanzasetiaPosted about 2 years ago
Hello, @iulias17! 👋
Congratulations on completing your second Frontend Mentor challenge! 🎉
First, I recommend updating the URL for the GitHub repository to https://github.com/iulias17/qr-code-component-main. There's no need for the URL to be on the
index.html
file.Now, some suggestions for improvements.
meta
charset should be the first child element of thehead
element. It is important to get discovered as soon as possible by the browser. I recommend reading <meta>: The metadata element - HTML: HyperText Markup Language | MDN #attr-charset- The same goes for the
meta
viewport, it should be discovered as soon as possible. Put this after themeta
charset. - Like @vcarames has said earlier, there's no need for
picture
element. Only use it when there are multiple versions of the same image. - Put the
main
element inside thebody
element (not the other way around).
I hope this helps! Happy coding!
Marked as helpful0
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