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 design using grid and flexbox for mobile first

@maikCyphlock

Desktop design screenshot for the FAQ accordion card coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Do you have any suggestions about thigns to fix using best practices?

Community feedback

Travolgi 🍕 31,400

@denielden

Posted

Hi Maikol, great work on this challenge! 😉

Here are a few tips for improve your code:

  • add main tag and wrap the card for improve the Accessibility
  • add descriptive text in the alt attribute of the images
  • use details semantic tag for the faq container -> read here
  • using <hr> for the line is not the best way because this tag have a semantic meaning... in this case use border-bottom because this line is decorative

Overall you did well 😁 Hope this help!

Marked as helpful

0

@maikCyphlock

Posted

@denielden Thank you for taking the time to review my challenge, thank you for your corrections and explanation, I will take them into account for my future challenges.

1
Vanza Setia 27,795

@vanzasetia

Posted

Greetings, Maikol! 👋

Congratulations on completing your first Frontend Mentor challenge! 🎉 In my opinion this is a brave choice for your first challenge.

I would highly suggest doing the QR code challenge first and then doing other component challenges to make you get comfortable with the workflow and hopefully, get some feedback first to build up your fundamental first before jumping to harder challenges. 👍

Some suggestions from me.

  • I would recommend using the native HTML elements to create accordions, details and summary elements. By default, they are accessible and screen-readers friendly. Currently, the accordion panels are not accessible by keyboard and the screen reader doesn't know that it is an accordion.
  • Use CSS border property to create the line. hr element has a role as a separator. In this case, the content below the line should not be separated.

I would highly recommend writing the styling using the mobile-first approach. It often leads to shorter and better performance code. Also, mobile users won't be required to process all of the desktop styles.

That's it! Hope you find this useful! 😁

P.S. I recommend removing the #vanilla-extract tag since the site is not built with vanilla extract.

Marked as helpful

0

@maikCyphlock

Posted

@vanzasetia thank you for your advice and very concise explanation , I will take them into consideration. and thank you for taking the time to review my challenge.

0
Vanza Setia 27,795

@vanzasetia

Posted

@maikCyphlock No, problem! Glad it was helpful for you! 😄

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