How do I make sections of a webpage expandable/collapsable?

I’m going to be showing data from different months.

Right now it just displays them like this:

How do I make those into sections so the user can click on the month they want to see and now have to have everything display at once?