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

Accordion (HTML, CSS, JS, jQuery)

Anna 140

@AnnaUlianova

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


Hello, everyone! I would really appreciate any suggestions about the second question container, unexpectidly in the active state arrow picture tends to disappear from time to time. I have no clue how to fix it because, the common code is written for all the question containers. Thank you!

Community feedback

P
Ken 4,915

@kens-visuals

Posted

Hey @AnnaUlianova 👋🏻

I have some quick tips to help you fix the HTML issues and some other things.

  • In this case, instead of <section>, I suggest using regular <div> for a couple of reasons. First, when you use a <section> you have to have a heading, like h2-h6. Next, <section> is for bigger parts of a layout, such as, contact us about us, image gallery, etc.
  • For the box icon, add aria-hidden="true”, because it's for decoration. You can read more about aria-hidden here.
<img id="main-pic" src="images/illustration-woman-online-desktop.svg" alt="" aria-hidden="true”>

I hope this was helpful 👨🏻‍💻 sorry, I'm not really familiar with jQuery, so I cannot answer the question about the arrow. Other than that, you did a great job, nicely done. Cheers 👾

Marked as helpful

0

Anna 140

@AnnaUlianova

Posted

@kens-visuals hello, thanks a lot for your feedback, hasn't paid so much attention to these details, but i should indeed, now everything is fixed and my report is clear :)

0
P
Ken 4,915

@kens-visuals

Posted

@AnnaUlianova you're 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