Design comparison
Solution retrospective
This is my first challenge on Frontend Mentor, please rate, give me feedback on how we can upgrade. Thanks
Community feedback
- @S02KPosted 11 months ago
Your QR component looks great i see a couple of things that you could change
- The color of the background and parg1 are not the same as in the example project.
- You have your CSS in your HTML file it is considered best to make a seperate file for this.
- The <p parg1> should be a H1 or H2 because it is a title.
i hope this helps you improve your project
Marked as helpful1 - @Islandstone89Posted 11 months ago
To add to the tips above:
HTML:
-
You need a
<main>
, this is important for accessibility. Make.container
a<main>
. -
The image must have alt text. This is essential for screen readers to understand the image. The alt text should be descriptive, and in this example, it also needs to say where it leads (frontendmentor.io).
-
.attribution
should be a<footer>
. -
Footer text needs to be wrapped in a
<p>
.
CSS:
-
It's good practice to include a CSS Reset at the top
-
body
should havemin-height
, notheight
. Remove thewidth
- the body is 100% wide by default. -
Remove the fixed width and height. You rarely want to set fixed dimensions, as this easily creates issues with responsiveness.
-
Remove
margin
andheight
on image, they are not needed. Adddisplay: block
andmax-width: 100%
.
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