FAQ Accordion Card with html css and pure js

Solution retrospective
open for feedback
Please log in to post a comment
Log in with GitHubCommunity feedback
- @vanzasetia
Hi! 👋
Some recommendations from me.
- I recommend formatting your code. It is currently hard to read and understand your code. Try using code-formatter such as Prettier to help you do this automatically.
- The accordions are not a list. Use
summary
anddetails
tags instead. - I recommend creating a function where it prevents the users to open more than one accordion panel. This way, the card will not have too much height because of the accordion panels get opened at the same time.
That's it! I hope this helps!
Marked as helpful
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