QR Code Component Using Flexbox

Solution retrospective
Hello! Just curious on the structure of my HTML. I did a div for the container and one div for the card which contains all of the elements within the card (image, h1 and paragraph tags) - is this the right way to structure the card? Or should the image have been in one div and the h1 and paragraph tags in another div? Overall, it worked in the end, but I wasn't sure if there are better practices to follow. Thank you!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @pascal-prfst
Maybe you can put the container div into <main> tag and the attribution tag into a <footer> tag. Everything else looks solid.
Happy coding
Join 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