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

Solution of Blog preview card "html & css only"

@RizqiSugiarto

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


This is the first frontend project I have ever completed, I think there are still many shortcomings

Do you have any suggestions for this project?

Community feedback

@AGutierrezR

Posted

Hello there @RizqiSugiarto 👋. Good job on completing the challenge!

I have some suggestions about your code that might interest you.

General Structure and HTML:

  • Wrap the primary content within the <main> tag instead of using it as a standalone component like a <div>.
  • All the content should be contained within landmarks. Every page minimally needs a <main> element.

CSS and Styling:

  • Replace the 100vw from the height on the body for a 100vh. You are using the wrong unit. This will center the card on the screen
  • Remove the width: 100vw on the body, you dont need it.
  • Remove the width: 340% on the .card, you dont need it.

Accessibility and Semantic HTML:

  • The icons/illustration images are decorative, so their alt text must be emptyalt="".
  • Profile image could benefit from a more descriptive alt text, like alt="Headshot of Greg Hooper" or you could leave it empty alt="".

I hope you find this helpful 😁. Most importantly, your submitted solution is fantastic!

Happy coding!

Marked as helpful

0

@RizqiSugiarto

Posted

@AGutierrezR Thank you very much🤩

0

@techyjc

Posted

Great Job!

Change the body CSS height from 100vw (view width) to 100vh(view height).

Otherwise all good!

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