# Collapsed Accordions

## Accordion (collapsed content)

Accordions can toggle through a number of textblocks with a single click, and that greatly enhances the UX of your page.

### What are accordions?

**An accordion** is a component that organizes content within collapsable items.&#x20;

**Accordions** can toggle through a number of text blocks with a single click, and that greatly enhances the UX of your page.&#x20;

See the gif below, and the live demo at <https://campaign.codenation.com/donation_v2>

![](/files/-MJ9hmOO56GXJKdSMeCH)

## How to add an accordion/collapsed content?

In the content of a page add 2 horizontal lines (`<hr>`) at the start of the headline and start of the content. See image below<br>

![](/files/-MJ9iUhqE5JzRdUbea66)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codenation.com/campana/admin-tag-customisations/collapsed-accordions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
