Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive Blog Preview card

@Shankarganesh-B

Desktop design screenshot for the Blog preview card coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

This second challenge is quite similar to the previous one but I'm so proud that I was able to this challenge in very short span of time compared to previous one.

What challenges did you encounter, and how did you overcome them?

I had quite a bit of confusion when it comes to using proper semantic tags. I took my time to make it as appropriate and readable as I could.

What specific areas of your project would you like help with?

I'm open to wise words that could help me improve my game, especially with semantics and responsivity of this webpage.

Community feedback

Adriano 36,730

@AdrianoEscarabote

Posted

Hello Shankarganesh-B, how are you? I was really pleased with your project, but I’d like to offer some advice that might help:

Since this project is only based on a single page component, there is no need for a h1 tag. It's always a good idea to prevent accessibility errors, so I believe it would be beneficial for you to add a "h1" in this component. Don't worry if you forget about "h1," though; it's a good practice for when you are developing larger sites.

<h1>HTML & CSS foundations</h1>

Consider using rem for font sizes. When font sizes are set in absolute units like pixels, users can't adjust the text size based on their preferences. Relative units like rem adapt to the screen size and user settings, making them more flexible across various devices.

If you'd rather keep using px, you can download a handy VS Code extension that converts pixels to rem automatically

link -> px to rem

The rest is spot on.

Hope it’s helpful to you. 👍

0
Huy Phan 1,860

@huyphan2210

Posted

Hi, @Shankarganesh-B

I checked out your solution and I have some thoughts:

  • Your uncertainty about semantic HTML is understandable. There aren't strict rules, but the main goal of semantic HTML is to improve accessibility. Accessibility encompasses many aspects, but one key goal is to help those who rely on screen readers or other assistive technologies, like people who are visually impaired. Try putting yourself in their position—how would they understand your HTML if they can't see the page? A good starting point is to make each HTML tag as self-descriptive as possible. You could research further to deepen your understanding of this.
  • Regarding your question about responsiveness, I'd advise against setting fixed dimensions on HTML elements (like width: 384px on .preview-card-container). Instead, use relative properties (e.g., max-width, min-height), relative units (e.g., rem, em, %), and CSS functions (clamp, min, max, calc). I noticed you're already using media queries, but it may help to explore the mobile-first approach to optimize your design further.

In the end, balancing thought and practice is key. Keep pushing forward, and you’ll continue to improve.

Hope this helps!

0
Justin 540

@iamprincetj

Posted

Congrats on finishing this challenge, you did great! But looking at the design I noticed your second <p> tag is darker than the design's, try giving it a more grayish color. Also, the user profile picture is larger than it should be try reducing the width. Try putting all your media queries at the bottom of your CSS file, it looks nice that way. Goodluck!

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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