Responsive Frontend Mentor - QR code component using flexbox.
Design comparison
Solution retrospective
Any advices? do's and don't I should follow? Thanks in advanced.
Community feedback
- @VCaramesPosted over 2 years ago
Good job on your project!
One good practice is knowing when to use classes. Since this project is really small (code wise), classes are not necessary. This project uses only one of each element;
main
,img
,heading
andp
.Once your project start to get larger, then classes are definitely required. To keep things classes clean and easy to read you can use the BEM naming convention. Here's an article that explains more in detail. https://codeburst.io/understanding-css-bem-naming-convention-a8cca116d252
Also, each element serves a purpose. For example, the
header
element is usually reserved for introductory content; nav and hero content. https://developer.mozilla.org/en-US/docs/Web/HTML/ElementSo for this project, you use either the
main
orarticle
element.Hope this helps in your coding journey!
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