FAQ accordion card using html, css and javascript
Design comparison
Solution retrospective
wow, i just completed another challenge use html, css and a little bit of javascript, all feedbacks are welcome
Community feedback
- @MelvinAguilarPosted 12 months ago
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 helpful0@heisemmaco-devPosted 12 months ago@MelvinAguilar thank bro i really appreciate your insight on my code, thank for taking your time to upserve and letting me know, i really appreciate
0 -
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