Request path contains unescaped characters
Request path contains unescaped characters
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 3 column card using flexbox

@mathieuc22

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

Ahmed Bayoumi 6,740

@Bayoumi-dev

Posted

Hey Nervous, It looks great!... Here are some suggestions:

  • Document should have one main landmark, Contain the component with <main>.
<main>
   <div class="card">
      //...
   </div>
</main>
  • Using more than one <h1> is allowed by the HTML specification, but is not considered a best practice. Using only one <h1> is beneficial for screenreader users.

---> Multiple <h1> elements on one page

  • Use <button> or <a> instead of <div class="button">Learn More</div>.... Buttons are used for actions like opening or closing something or sending a form, Links are used for navigation and actions, So in this case, I suggest you use the anchor link <a> and then add this attribute ---> role="button"
<a href="#" class="button" role="button">Learn More</a>

Hope this help!... Keep coding👍

Marked as helpful

1

@mathieuc22

Posted

@Bayoumi-dev thank you!

I replaced card div by main, use sections to allow multiple h1 and use button instead of div now.

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