Design comparison
Community feedback
- @MelvinAguilarPosted almost 2 years ago
Hello there ๐. Good job on completing the challenge !
I have other suggestions about your code that might interest you.
- 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
- Use semantic elements such as
<main>
and<footer>
to improve accessibility and organization of your page.
I hope you find it useful! ๐ Above all, the solution you submitted is great!
Happy coding!
Marked as helpful0@Mitko90Posted almost 2 years ago@MelvinAguilar Thank you for the suggestions. It's my first ever challenge that I decided to submit, so any help I can get is very appreciated.
0 - Since this component involves scanning the QR code, the image is not a decoration, so it must have an
- @HassiaiPosted almost 2 years ago
Replace<div class="card">with the main tag, <h2> with <h1> and <div class="attribution"> with the footer tag to fix the accessibility issues. click here for more on web-accessibility and semantic html
Give h1 and p the same font-size of 15px, text-align: center, the same margin-left, margin-right and margin-top values. Give p a margin bottom value.
Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful0@Mitko90Posted almost 2 years ago@Hassiai Thank you very much. Of course you're helpful and I'm glad and thankful for all the help I can get. Will update shortly with the suggested changes.
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