CSS only Accordion
No Javascript?
Not a line. 😊
How does it work?
By laying an invisible checkbox over the whole question field.
The visibility of the answer depends on the box being checked or not.
It's a simple sibling selector:
input.toggle:checked ~ .answer { display: none; }
Can I see the code?
Sure.
There is a bare bones sample on
Codepen
.