Design comparison
Solution retrospective
This assignment helps me to learn more about the position in CSS and flex box. I did find a little difficult positioning the sections in a good frame.
Feedbacks are welcome.
Community feedback
- @danielmrz-devPosted 9 months ago
Hello @Kshitiz42069!
Your solution looks great!
I have a suggestion for improvement:
- 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.This tag change does not impact your project visually and makes your HTML code more semantic, improving SEO optimization as well as the accessibility of your project.
I hope it helps!
Other than that, great job!
Marked as helpful1 - Use
- @petritnurediniPosted 9 months ago
Congratulations on completing your Blog Preview Card project, Greg! š Your efforts in crafting an engaging and visually appealing design are commendable. Here are some recommendations to further enhance your project:
-
HTML Structure and Semantics:
- Great job using semantic HTML elements. It's good practice to ensure that each image has an
alt
attribute. For decorative images, you can use an emptyalt
attribute (alt=""
) to improve accessibility.
- Great job using semantic HTML elements. It's good practice to ensure that each image has an
-
CSS Styling and Consistency:
- Your CSS is well-organized. Consider using CSS variables for colors and font sizes to make future changes easier and your code more maintainable.
- Avoid inline styles if possible, as they can override your CSS file and make debugging more difficult.
-
Responsive Design:
- Ensure that your design is responsive on different devices. You might want to add media queries to adjust the layout for mobile and tablet screens.
-
Performance and Accessibility:
- Optimize your images for faster loading times. Tools like TinyPNG can help reduce file sizes without losing quality.
- Increase the contrast between text and background colors to improve readability, especially for users with visual impairments.
-
Code Efficiency:
- Use classes efficiently to avoid repetition. For example, if multiple elements share the same styling, consider grouping them under one class.
- Minimize the use of
div
elements and explore more semantic elements likearticle
,section
, andaside
for better structure and readability.
References for Further Learning:
- Web Accessibility Guidelines: W3C
- CSS Tricks for Layouts and Design: CSS-Tricks
- Responsive Web Design Principles: MDN Web Docs
Keep up the great work, Greg! Your journey in web development is progressing beautifully, and I'm excited to see your future projects. Keep exploring and learning! š»āØ
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