@PhoenixDev22
Posted
Hi Fran Sanabria,
Congratulation on completing this frontend mentor challenge. Your solution looks great. I have some suggestions regarding your solution:
- You should use
<main>
for the card and<footer>
for the attribution. HTML5 landmark elements are used to improve navigation experience on your site for users of assistive technology. - In my opinion, the image is an important content. The alternate text is needed on this image. The alternate text should indicate where the Qr code navigate the user : like
QR code to frontend mentor
not describes the image. - Adding
rel="noopener"
orrel="noreferrer"
totarget="_blank"
links. When you link to a page on another site usingtarget=”_blank”
attribute , you can expose your site to performance and security issues. width: 320px
an explicit width is not a good way to have responsive layout . Consider usingmax-width
to the card inrem
.height: 497px;
It's not recommended to set height to component, let the content of the component define the height.- Using percentages for widths, using max-width and avoiding to set heights for the components, with these things is the key to mastering responsive layouts.
- Consider using rem and em units as they are flexible, specially for font size better to use rem. If your web content font sizes are set in absolute units, such as pixels, the user will not be able to re-size the text or control the font size based on their needs. Relative units “stretch” according to the screen size and/or user’s preferred font size, and work on a large range of devices
- Remember a css reset on every project. That will do things like set the images to display block and make all browsers display elements the same.
- Consider including a git ignore. Less important in this challenge but will become extremely important as you move onto larger projects with build steps
Overall, Excellent work! Hopefully this feedback helps.
@Fran-Sanabria
Posted
@PhoenixDev22 Thank you very much for your suggestions, I had not considered many of them and they help me a lot, I will take them into account and start applying them asap