QR profile loader, centering a div and used a div to set image inside
Design comparison
Community feedback
- @Ezekiel225Posted 9 months ago
Hello there π @raxulsharmaa.
Good job on completing the challenge !
Your project looks really good!
I have a suggestion about your code that might interest you.
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.
As you delve into web development, mastering semantic HTML is key to building well-structured and accessible websites. Here's some advice to get you started:
πUnderstand the Purpose: Semantic HTML isn't just about styling; it's about conveying meaning. Each HTML element serves a specific purpose, from indicating headings and paragraphs to defining navigation bars and footers.
πChoose the Right Element: Instead of relying solely on generic containers like
<div>
and<span>
, opt for semantic elements like<header>
,<nav>
,<main>
,<article>
,<section>
,<aside>
, and<footer>
. These elements provide clarity to both humans and search engines about the content's purpose and structure.πPrioritize Accessibility: Semantic HTML plays a crucial role in making your websites accessible to all users, including those who rely on screen readers or assistive technologies. By using semantic elements correctly, you improve the navigation and comprehension of your site's content for everyone.
πEnhance SEO: Search engines favor websites with well-structured, semantic HTML. By using appropriate tags such as
<h1>
to<h6>
for headings,<p>
for paragraphs, and semantic elements for sections and articles, you improve your site's visibility and ranking in search engine results.πStay Consistent: Consistency is key to writing clean and maintainable code. Establish naming conventions and stick to them throughout your projects. This makes it easier for you and other developers to understand and modify the codebase as needed.
πLearn from Examples: Study the HTML structure of well-designed websites and open-source projects. Pay attention to how they use semantic elements to organize content and enhance user experience. You can learn valuable insights and techniques by analyzing real-world examples.
πPractice Regularly: Like any skill, mastering semantic HTML requires practice. Challenge yourself to refactor existing code to use more semantic elements, and incorporate them into your new projects from the start. The more you practice, the more natural it will become.
Remember, semantic HTML isn't just a best practiceβit's a fundamental building block of modern web development. By embracing semantic markup, you'll not only create more accessible and SEO-friendly websites but also become a more proficient and respected developer in the field.
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.
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.
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