@RyanCahela
Posted
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 helpful
@KishanHK
Posted
@RyanCahela thanks man, really helpful.