Design comparison
SolutionDesign
Solution retrospective
How can I open/close an accordion using only CSS without JS? Cheers
Community feedback
- @BenConfigPosted over 3 years ago
Hi Riccardo, you can use the <details> and <summary> elements for the accordion. I found this video helpful for this challenge: 2 HTML Elements I Never Used!? (Details & Summary)
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin 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