Add html block for each tagged cell

Hello,
I want to export a notebook to html and wrap tagged cells in collapse divs.
However, I am a bit lost with nbconvert and I seek help: should I use a filter ? A formatter ? The official documentation is confusing to me.