New to JavaScript
I learned JavaScript, CSS, and HTML around November on freecodecamp, but I was focusing on HTML and CSS, and I completely forgot the learning of JavaScript. Do i just go back to freecodecamp to learn it? And I don't know how to implement JavaScript with HTML and CSS.
4 Replies
It seems that I have to create a clickable button, Which I don't know how.
For now if you want to create something "closeable" you can try to use <details> element https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details
MDN Web Docs
: The Details disclosure element - HTML: HyperText Markup Language ...
The HTML element creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label must be provided using the element.
But diving in Javascript is amazing and it will help your developer growth, for accordion realization, you need to add a class (for example, "active") on click foreach of the accordion-wrappers and you will get this cool effect
Thank you.