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

Mobile first three-column preview card component

P

@Mitko90

Desktop design screenshot for the 3-column preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@VCarames

Posted

Hey there! 👋 Here are some suggestions to help improve your code:

  • The article element is being used incorrectly ⚠️ and not needed for this challenge.
  • The headings in your component are being used incorrectly❌. Since the h1 heading can only be used once ⚠️, it is always given to the heading with the highest level of importance. This component has three headings of equal importance, so the best option would be to use an h2 heading ✅ since it is reusable and it will give each heading the same level of importance.
  • Your "buttons" were created with the incorrect element ❌. When the user clicks on the button they should be directed to a different part of you site. The anchor tag will achieve this.

More Info:📚

MDN The Anchor element

  • For improved accessibility 📈 for your content, it is best practice ✅ to use em for media-queries. Using this unit gives users the ability to scale elements up and down, relative to a set value.

If you have any questions or need further clarification, you can always check out my submission and/or feel free to reach out to me.

Happy Coding! 👾

Marked as helpful

0

P

@Mitko90

Posted

@vcarames Hello and thanks for the feedback. Will update shortly with the suggested changes. I'm really grateful for your comments and I did the mobile first approach because you advised me to do so.

I thought a lot about which heading to use and apparently I chose the bad one. My question though is

If I change my tag to h2, would I get accessibility warnings because last time I did?

Thanks again

1

@VCarames

Posted

@Mitko90

I’m glad that I been able to help you in your coding journey.

Regarding the heading, unfortunately, yes. This is because the report is not aware that it is a component and not a full website.

But, you can remove the warning by adding a visually-hidden h1 heading to your code.

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