Collapse-and-Expand-using-HTML-CSS-and-JavaScript Using JavaScript, CSS and HTML, the buttons can be made collapsible and expandable. You can change the code according to your need.