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 FAQ Accordion using HTML, CSS and JS

@priyansh70

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 are you most proud of, and what would you do differently next time?

I am very proud of creating it because the first time I created fully functional things, and the main thing is I didn't know how it was created but I completed it step by step and made some changes which is better.

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

The major challenge for me JS part. When I started at that time I thought I would create using DOM Manipulation and dynamic so if there were 10 instead of 4 it could work. I did it and even I optimized my code so I am very happy.

I overcome this challenge by seeing the property of DOM Manipulation and implementing it.

Community feedback

Sebastien 60

@bisol84

Posted

Good job and good start. I am in the same case as you ;-).

Things to improve :

  • color hard-coded in javascript, add a css class (classlist.add) ans use variable in css
  • you can do this with less code, put code in chatgpt and ask for optimisation (don't copy past, ask for explanations)

Marked as helpful

0

@priyansh70

Posted

@bisol84 Thank you for your valuable suggestion.

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