Responsive Stats preview card component designed by CSS flexbox
Design comparison
Solution retrospective
Hello Team! I've just completed this challenge, i will appreciate your comments or any suggestions.
Community feedback
- @5hraddhaPosted almost 3 years ago
Hey @iddimsangi, First of all, great job on implementing the design!! 👍There are a few suggestions that would like to give for improvements, if you would like:
-
If you write a lot of JavaScript, then writing variables in camel case is a common practice. So, for naming CSS classes, it is good to use Hyphen Delimited strings by convention (all in small case).
-
I could see that you have used a
<div>
tag as footer inside a<header>
tag. Syntactically, there is no problem but semantically, this is not correct. In a webpage, we should not nest a footer inside a header. For more clarity on nesting of HTML elements semantically, you could refer this article - CSS Tricks - How to section your HTML Elements -
Also, instead of using
<div>
tags as a container everytime, you could look into using different HTML semantic tags. It gives better meaning to the markup and improves accessibility. Freecodecamp Semantic Elements
Great job. Enjoy the learning.
Marked as helpful0 -
- @iddimsangiPosted almost 3 years ago
Thank you so much, it helps me alot
1
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