Design comparison
Solution retrospective
i find looking for the background of the image difficult i think. I am unsure of its reponsiveness. I also think that i have a disorganized code. Please give me some advice about how i structure my code. I'm still new to coding so i would be happy for for every criticism and advices thank you!
Community feedback
- @devpullcodePosted about 1 year ago
"I've been reviewing your code, and you're on the right track. 👏
Below, I'll give you some recommendations, but don't worry about making the code perfect. The important thing at the beginning is to discover and learn new techniques without worrying too much about optimization.
-
I recommend formatting your code properly. You can use a formatter like Prettier in VSC (Visual Studio Code). 🧹
-
Avoid creating too many
<div>
elements and look for HTML elements that can represent the blocks you're creating. Instead of using the<div class="caption">
tag, you can use the<figcaption>
tag along with the<figure>
tag, which associates an image with its description. Look into the concept of HTML semantics! -
While you're starting out, focus on simplifying the design and don't try to add too many HTML elements to make it easier to write CSS. I'm referring to the hyperlinks you added to the text; they weren't necessary, but they're good for practice.
-
Another recommendation, not directly related to the project itself, is to avoid using fixed heights. I recommend that the height of the element is calculated based on its children; it will make your design work easier. I've also used a fixed height 😄, but I recommend not using them.
-
Use comments to understand what the code is doing so that when you come back to it in the future, you'll have an easier time grasping it. Over time, as you advance in your learning, you'll need them less and less.
-
In this practice, it's not necessary to use media queries because the design adapts well to all devices. So avoid making unnecessary modifications if they're not needed. It will make your life easier! 😜
-
Try to group each content into its corresponding directories/folders. I'm referring to the two screenshots; you can place them inside the 'images' directory and create another subdirectory in there if needed.
Other than that, congratulations on your project, and kudos for embarking on this wonderful journey into the world of programming. Keep it up, and you'll go far. Go for it! 🚀👨💻"
Marked as helpful1@ElijahPobletePosted about 1 year agoThank you very much! I really appreciate it! I'll put it to practice in my future works
0 -
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