How to make collapseable views in HTML?

Hi there

I am trying to make collapseable layout in HTML like below attached diagrams.When user clicks on any item then its content will slide down and when user again clicks on it then its content will move up

See diagram below

That’s known as an accordion.
Here’s an example:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.