
Design comparison
Solution retrospective
I completed the challenge as expected. Next time, I might explore more styling options.
Community feedback
- P@kaamiikPosted 25 days ago
Congratulation for doing this challenge. Some notes for your code:
HTML Structure & Semantics
-
Image descriptions should be meaningful and descriptive:
- Use alt text that explains the purpose:
alt="QR code to Frontend Mentor website"
- Avoid generic descriptions like "image" or "picture"
- Use alt text that explains the purpose:
-
Follow proper heading hierarchy:
- Each page should have one
<h1>
- For components that are part of a larger page, use
<h2>
instead - This maintains proper document structure while reflecting component hierarchy
- Each page should have one
-
Keep HTML and CSS in separate files
CSS Best Practices
Reset & Base Styles
- Start with a proper CSS reset (Andy Bell or Josh Comeau recommended)
- This ensures consistent styling across browsers
CSS Units Best Practices
- Use relative units for better accessibility and scaling:
- Convert
font-size
andmax-width
values frompx
torem
- This allows text and layout to scale with user preferences
- Read more about unit best practices here
- Convert
Height Units Best Practices
- Use
min-height=: 100vh
instead of fixedheight
for viewport-height elements:
Image Handling
- Keep image styling minimal and responsive:
img { max-width: 100%; display: block; }
This ensures:
- Images scale properly
- No unwanted whitespace below images
- Content adapts to different screen sizes
- No need to wrap image in a div.
Marked as helpful1@big-hero-devPosted 24 days ago@kaamiik Thanks a lot for your help! It's been really useful for me.
1P@kaamiikPosted 24 days ago@big-hero-dev Thanks. Your code is more organize now. Just two issue I see:
max-width
unit should be inrem
.
- Never change
html
font size like what you didfont-size: 62.5%
. You never need to change html font size and If you do may cause serious problems in your page. Read this article about this hack: https://fedmentor.dev/posts/rem-html-font-size-hack/
Marked as helpful1@big-hero-devPosted 24 days agoThanks @kaamiik! I've updated the rem calculation based on your feedback.
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