Design comparison
Solution retrospective
QR-code-component
Community feedback
- @RabicaTahirPosted over 1 year ago
Hi π zohaib. Congratulations on completing the challenge !
I have some suggestions about your code.
HTMLβ‘:
βͺ It is advisable that you place all your main site content in a landmark element <main>.
βͺ Replace <h2> with <h1> it is better to use a tag in sequence.
βͺ Instead of using
br
you should use a semantic HTML element and the CSS margin or padding properties if necessary.Alt text π:
βͺ The alt attribute should explain the purpose of the image. so try to use it in image tag.
CSS π¨:
βͺ Instead of using pixels in font-size, using relative units like em or rem is a good practice.
I hope you find it useful! By the way, the solution was great. ππ―
Enjoy coding, Stay Safe!π€
Marked as helpful1@zohaibAlam840Posted over 1 year ago@RabicaTahir Thanks for the feedback! I will definitely take it into account in my next challenges!
0 - @0xabdulkhaliqPosted over 1 year ago
Hello there π. Congratulations on successfully completing the challenge! π
- I have other recommendations regarding your code that I believe will be of great interest to you.
HTML π·οΈ:
- Your solution generates accessibility error reports due to
non-semantic
markup
- So fix it by replacing the
<div class="container">
with semantic element<main>
to improve accessibility and organization of your page.
- Since this component involves scanning the QR code, the image is not a decoration, so it must have values in
alt
attribute. Thealt
attribute should explain its purpose. e.g.alt="QR code to frontendmentor.io"
I hope you find it useful! π Above all, the solution you submitted is great!
Happy coding!
1@zohaibAlam840Posted over 1 year ago@AbdulKhalid Thanks for the feedback! I will definitely take it into account in my next challenges!
0
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