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

Blog Preview Card (CSS | HTML )

jwalczak94 810

@jwalczak94

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?

.

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

.

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

.

Community feedback

P

@Islandstone89

Posted

Hey, well done!

You have included many things that most people miss:

  • Heading for screen readers
  • <main> and <footer> landmarks
  • CSS Reset
  • Custom Properties
  • No fixed widths or heights in px
  • max-width on the card in rem
  • font-size in rem instead of px

Here are a few tips to improve your solution even further:

HTML:

  • "Learning", "Published" and "Greg Hooper" are <p> elements.

  • I would wrap the date in a <time> element:<p>Published <time datetime="2023-12-21">21 Dec 2023</time></p>.

  • The heading would have a link as this is a blog card.

  • You should not use words like "photo" or "image" in the alt text, as screen readers announce it as an image by default.

CSS:

  • Add display: inline-block on "Learning", so it doesn't take up more width than its content and padding.

  • Paragraphs have a default font-size of 1rem, so you don't need to declare it explicitly.

Keep up the good work :)

Marked as helpful

2

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