# What's the syntax to create a collapsable section on Discourse?

**URL:** https://discourse.julialang.org/t/whats-the-syntax-to-create-a-collapsable-section-on-discourse/122354
**Category:** Meta Discussion
**Created:** [November 6, 2024, 8:09pm UTC](https://discourse.julialang.org/t/whats-the-syntax-to-create-a-collapsable-section-on-discourse/122354 "2024-11-06T20:09:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)
#### Post date: [November 6, 2024, 8:09pm UTC](https://discourse.julialang.org/t/whats-the-syntax-to-create-a-collapsable-section-on-discourse/122354/1 "2024-11-06T20:09:51Z")

</div>

Different thing: what is the mark-up syntax for inserting this collapsible code?

Ah… figured it out

```julia
<details>
<summary> Click </summary>
...test
</details> 

```

---

<div class="post-metadata">

### Author: ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)
#### Post date: [November 6, 2024, 8:15pm UTC](https://discourse.julialang.org/t/whats-the-syntax-to-create-a-collapsable-section-on-discourse/122354/2 "2024-11-06T20:15:44Z")

</div>

It’s the HTML `<details>`, optionally with a `<summary>` section.

> **See the magic here**
>
> This stuff is hidden. Here’s how I wrote this block:
> 
> ````html
> <details>
> <summary> See the magic here </summary>
> 
> This stuff is hidden. Here's how I wrote this block:
> 
> ```html
> <!-- ... and recurse ... -->
> ```
> 
> </details>
> 
> ````
