FAQ accordion card using html, css and javascript

Solution retrospective
wow, i just completed another challenge use html, css and a little bit of javascript, all feedbacks are welcome
Please log in to post a comment
Log in with GitHubCommunity feedback
- @MelvinAguilar
Hello there 👋. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
-
The indentation of the code is inconsistent, making it difficult to read and understand. It's recommended to use a code formatter tool, such as Prettier, in your code editor to automatically format your code and maintain consistent indentation.
-
Use font-size in rem or em units rather than pixels for better responsiveness
-
As a curiosity, if you prefer not to use JavaScript to create the accordion, you can use the native HTML
<details>
and<summary>
tags.
I hope you find it useful! 😄 Above all, the solution you submitted is great!
Happy coding!
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