@MelvinAguilar
Posted
Hello there π. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
- Right now your solution looks very similar to the screenshot, however, the footer takes up some pixels of height that will make it so that your solution never looks exactly the same. I'm not saying to eliminate it, I'm just saying that it could get very complicated trying to make it exact. What the people recommend is not to focus on making it look similar, but on the quality of the code.
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.
- Use the
<footer>
tag to wrap the footer of the page instead of the<div class="attribution">
. The<footer>
element contains information about the author of the page, the copyright, and other legal information.
- The
<br>
tag is not a semantic element. If a screen reader user is reading the page, they will hear "line break", which breaks the flow of the content. Instead, use CSS properties likemargin
,padding
ormax-width
to add vertical space between elements.
- 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 π¨:
- Instead of using pixels in font-size, use relative units like
em
orrem
. The font-size in absolute units like pixels does not scale with the user's browser settings. This can cause accessibility issues for users who have set their browser to use a larger font size. You can read more about this here π.
I hope you find it useful! π Above all, the solution you submitted is great!
Happy coding!
Marked as helpful
@keziarkts
Posted
@MelvinAguilar
Hello,
Thank you for your reply! Your suggestions are very helpful to me. I will try to apply them and focus more on providing quality code rather than focusing too much on the visual.
Your feedback encourages me to get better at coding! Thanks π