Design comparison
Solution retrospective
Can my code be more shorter or efficient.
Community feedback
- @RyanCahelaPosted almost 3 years ago
Hello Hari, This is a good first try.
With most things in web development, there aren't 100% correct or 100% wrong solutions, there are some things I would have done differently.
-
Move the CSS in the head of the HTML to the external stylesheet you created.
-
I would remove the padding from the qr-code image and put it on the .middle-container class. that way anything inside the .middle-container will be pushed away from the edge instead of just the image.
-
change the .middle-container class name to something more specific like "qr-card" or "qr-container" or something like that.
-
It works for this small project but usually you want to stay away from using element selectors to target a single element on the page (the h3 and p rules). it can get confusing once you have more than one <p> or <h3> on the page. unless you want them to look exactly the same, which in some cases you might.
like I said, these are just suggestions. There are 1000 different ways to do the same thing.
Marked as helpful0 -
- @NaveenGumastePosted almost 3 years ago
Hay ! Good Job Hari Kishan
These below mentioned tricks will help you remove any Accessibility Issues
-> Add Main tag after body like it should be your container
-> For 1st heading or h1 tag, use header tag and then inside the header put your h1 or h2 etc
-> But use header tag only once in main heading element.
Keep up the good work!
Marked as helpful0 - @kacperkwintaPosted almost 3 years ago
Some tips:
- entire box is not correctly centered, here is simple example how to do this, and here short film about this too
- create
<main>
tag and wrap all other into this (semantic and accessibility), more about this here - Page should contain a level-one heading
- don't use
px
forfont-size
, here's why - try to avoid static height in px, use more paddings and margins (:
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