Design comparison
SolutionDesign
Community feedback
- @MelvinAguilarPosted over 1 year ago
Hello there π. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
- The GitHub repository is private or not available. :(
HTML π·οΈ:
- Always avoid skipping heading levels; Starting with <h1> and working your way down the heading levels (<h2>, <h3>, etc.) helps ensure that your document has a clear and consistent hierarchy. Source π
- 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. Resource π.
- There is no need to enclose each element
<p>
,<h*>
, you can directly use those tags and give them styles.
-
Avoid repeating
__
if you are using BEM naming convention because only one block name is allowed, For example, the class namemain__desc__title
contains the block namemain
andmain__desc
. Instead, you can usemain__title
.You can see an example of this error here: BEM Quick start - Nesting
I hope you find it useful! π Above all, the solution you submitted is great!
Happy coding!
Marked as helpful0
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