Accessible by default
The generated markup uses the native <details> element. It opens and closes with a click, Enter or Space, announces its state to screen readers and needs no JavaScript. The optional CSS adds a plus/close icon and spacing, and is small enough to inline.
How to add it to your page
- Write your questions and answers. Each new line in an answer becomes its own paragraph.
- Copy the HTML into your page or CMS (use an HTML or Custom HTML block).
- Keep the JSON-LD block alongside it, or paste it into the page's head.