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

Faq accordion

matt2282 310

@matt2282

Desktop design screenshot for the FAQ accordion coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What challenges did you encounter, and how did you overcome them?

Creating the accordion itself was a challenge because I wanted it to only display one item at a time and close the other tab question that was open before it. I had to figure out how to keep track of which question was open and how to change the plus or minus image back to the appropriate state as well.

Community feedback

Alejandro 380

@adelayglesiafleitas

Posted

Great job! I congratulate you on your effort. I would like to suggest that you use the <main> tag for the main content and the <footer> tag for the footer provided by the platform. This not only improves the semantic structure of your document but also enhances accessibility and understanding of the content. Keep it up, you're doing great!

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