details and summary create a native accordion without JavaScript. Click summary to toggle the content panel. Use the open attribute for initially expanded panels. Style the arrow with summary::marker in CSS.
Accordion without JavaScript
<details>
<summary>Click to expand</summary>
<p>Hidden content here!</p>
</details>
<details open>
<summary>Open by default</summary>
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
</details>