Part 1: The old way, using javascript and a DIV wrapper.
Starting collapsed. Click on heading to open.
Starting expanded. Click on heading to close.
These details are inside a DIV just like the example above, except the CSS is initially set to display: block.
This works well in that all information is accessible even without JavaScript. If JavaScript is disabled, the only functionality lost is the ability to collapse sections.