Design comparison
Community feedback
- @Ezekiel225Posted 9 months ago
Hello there π @Mali-billz.
Good job on completing the challenge !
Your project looks really good!
I have a suggestion about your code that might interest you.
π First: Use <main> to wrap the main content instead of <div>.
Tags like <div> and <span> are typical examples of non-semantic HTML elements. They serve only as content holders but give no indication as to what type of content they contain or what role that content plays on the page.
πSecond: As you embark on your journey into web development, understanding the importance of using External CSS over Internal CSS is crucial for writing cleaner, more maintainable code. Here's why you should make the switch:
πSeparation of Concerns: External CSS allows you to separate the structure (HTML) from the presentation (CSS). By keeping your styles in separate files, your code becomes more organized and easier to manage. This separation makes it simpler to update or modify styles without affecting the HTML structure.
πReusability: With External CSS, you can create a single stylesheet that can be linked to multiple HTML files. This promotes code reusability, saving you time and effort by avoiding duplicate styling code across your website.
πEase of Maintenance: Imagine having to update the styling of your website across multiple pages. With External CSS, you only need to make changes in one central stylesheet, rather than hunting down and updating each individual `` tags in your HTML files into this external stylesheet. Then, link your HTML files to the external stylesheet using the
<link>
tag in the<head>
section:<link rel="stylesheet" type="text/css" href="styles.css">
By adopting External CSS early in your coding journey, you'll set yourself up for success by writing cleaner, more maintainable code that is easier to collaborate on and update as your projects grow.
There is an very useful browser extension called Perfect Pixel that allow you compare with the design image and thus see the exact dimensions. I recommend it to you.
I hope this suggestion is useful for future projects.
Keep up the excellent work and continue to challenge yourself with new projects. Your progress is impressive, and each project is a step forward in your front-end development journey! ππ.
Other than that, great job!
Happy coding.
1@Mali-beePosted 9 months ago@Ezekiel225 thanks for the tips, I'm still learning about different ways to group content so I end up just using <div> for everything hey, mybad.
Let me give that Perfect Pixel extension a try, thanks.
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