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 Social proof section

Chris Jay 220

@chrisjay358

Desktop design screenshot for the Social proof section coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I would like it if my code can be reviewed and feedback is gotten. Lemme know what and how I could have approached a clean code. Thank you

Community feedback

Vanza Setia 27,855

@vanzasetia

Posted

Hi, Chris Jay! 👋

Here are some possible improvements.

For your next project, I recommend writing the CSS using the mobile-first approach (using min-width media queries). The mobile layout is simple. So, you only need to add more complex styling for larger screen sizes.

I hope you find this useful. 🙂

Marked as helpful

0

Chris Jay 220

@chrisjay358

Posted

@vanzasetia Thank you Vanza for taking the time to review my code

  • For the alt I put a text there because of validation, I wanted to add the aria-label="presentation" , but I didn't anymore. Thanks for calling my attention to it.
  • I didn't know that <blockquote>, I'll incorporate that from now on. I will also take my time on the resource you linked me to, I appreciate it, thank you.
  • I know about the <HTML> font size thing, however, it makes calculations easy and I am trying to rid away bad habits. someone here some time ago told me about it, I would stop using it soon.
  • For the min-height I thought I did, however, guess I removed it along the way, thanks for calling that to my attention.

Thank you Vanza Setia once again for taking rime to help me correct my code to best practices, i appreciate it, i really do.

0
Vanza Setia 27,855

@vanzasetia

Posted

@chrisjay358

<img> element must have alt attribute. So, if there is no alt attribute then the validation will tell you to add alt attribute. But, you just need to add the attribute. It does not necessarily mean you need to also add value.

Now, about aria-label="presentation", you should not do this. Screen readers will pronounce the image as "Presentation, image." which is not needed. More importantly, <img> has alt attribute to give it an accessible name. So, don't use aria-label on <img>.

You are welcome! 👍

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