This is an unpublished draft preview that might include content that is not yet approved. The published website is at w3.org/WAI/.

Expand/Collapse: Single

Code

Standard expand collapse:

{% include excol.html type="start" id="optional-id" %}

### Heading

{% include excol.html type="middle" %}

Content of the expand/collapse.

{% include excol.html type="end" %}

Parameters

type="start"
type="middle"
type="end"
For one expand/collapse, you will specify where it starts and ends, and where the cutoff point is (middle).
open="true" (optional)
To set the expand/collapse to be expanded by default, specify open=true
id="optional-id" (optional)
Set an ID to the expand/collapse if you require one.

Rendered output

Heading

Content of the expand/collapse.

Back to Top

This is an unpublished draft preview that might include content that is not yet approved. The published website is at w3.org/WAI/.