This content is inside a native HTML details element. The browser provides the expand/collapse behavior without extra JavaScript.
You can include any HTML content here, such as paragraphs, lists, images, or forms.
This content is controlled by a button. The container holding the content uses the class name details.
details
Click the button again to collapse. This panel uses a small amount of JavaScript to animate the height for a smooth transition.