QR code component

Solution retrospective
I'm quite happy with mine solution, but any feedback welcome.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @MelvinAguilar
Hi @Eleansphere, good job for completing this challenge! 👋
This is a very good solution for this challenge but here are some suggestions to improve your code:
-
Don't use
<br>
, the<br>
tag is not semantic. It should never be used to add vertical spacing, it is only used in specific cases (e.g. poem or an address) also when a screen reader reads the text it will break the text at the <br /> tag and break the flow of reading, You could use padding or margin styling via CSS to avoid them. More Information here. -
Instead of using
px
infont-size
, use relative units of measure likerem
orem
. Font size in absolute length units (px) does not allow a user with limited vision to change the text size in some browsers. Reference. -
You could use use a CSS Reset to remove browser built-in styles and reduce browser inconsistencies
/* This is very simple to reset the styles */ * { box-sizing: border-box; margin: 0; padding: 0; }
Popular reset style sheets:
I hope those tips will help you.
Good Job !
Marked as helpful -
Join 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