Design comparison
Solution retrospective
Hey, could give me some tips to improve my code?
Community feedback
- @MelvinAguilarPosted almost 2 years ago
Hello there ๐. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
Styles
-
Update the path of the styles to:
<link rel="stylesheet" href="./css/main.css">
-
To display the image correctly, you should add a dot in its src attribute:
<img src="./img/image-qr-code.png" ...>
HTML ๐:
- Use the
<main>
tag to wrap all the main content of the page instead of the<div>
tag. With this semantic element you can improve the accessibility of your page.
- The text
Improve Your Front-End Skills by Building Projects
is considered a heading element.
- Since this component involves scanning the QR code, the image is not a decoration, so it must have an
alt
attribute. Thealt
attribute should explain its purpose. e.g.QR code to frontendmentor.io
CSS ๐จ:
- Setting the font-size to 62.5% can attract compatibility issues with third-party libraries or plugins. You can read more about this with this two lectures:
Credit to grace-snow and vanzasetia for pointing this out.
I hope you find it useful! ๐ Above all, the solution you submitted is great!
Happy coding!
Marked as helpful1@ClaudioAmarenoPosted almost 2 years ago@MelvinAguilar Thanks for all, I made changes, but still I don't see a picture on my live web on github. *Edit nvm all works now thank you once again! :D
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