QR Code Component made with HTML, CSS

Solution retrospective
Does my code follow best practices? What could I improve on?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Phenics13
Hi! I viewed your code and I have a couple of suggestions for best practices.
- You should wrap all your content in
main
tag afterbody
tag. It is for SEO purposes.
<body> <main>...</main> </body>
- Wrap image with container with fixed dimensions or set image to fixed dimensions (
width
,height
). It prevents page's content from "jumping" when you load site with poor internet speed. To test it, if you use Chrome, open dev tools, go to Network, and pick network type: slow 3G. header
tag is used to contain navigation panel of a site. It is not appropriate to use it in content of the site. Read more abour semantic tags and how to use them.
- You should wrap all your content in
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