This works as of, at least, Anki 24.06.3.
According to the Mozilla Developer Network,
The <details> HTML element creates a disclosure widget in which information is visible only when the widget is toggled into an open state.
In standard web browsers, absent any CSS to the contrary, a <details> tag starts closed until further notice. Since Anki is basically a local web browser on top of a timer, this also works there.
What’s interesting is that nested details tags do not all trigger at the same time. This allows us to craft multi-stage answer sides for Anki cards where, for example, we need to get part (a) right before moving on to part (b), which we need to get right before moving onto part (c).
The HTML for the front and back of the example card:
|
|
and
|
|
Notice too that if you wanted to create a chain of leading questions, you could embed those into the summary tags.
I don’t often find myself reaching for cards like this, if only because I usually put each individual answer on an individual card. Repetitions of simpler items are easier to schedule, after all. But it’s nice to know this little trick already exists in the software we all know and love, hidden in plain sight.