The native HTML <details> and <summary> elements are widely supported in modern browsers including Chrome, Firefox, Safari, and Edge. They provide built-in accessibility features without requiring additional JavaScript.
Using the native <details> element provides automatic keyboard support, proper semantic meaning, and reduced JavaScript dependencies. Assistive technologies recognize it as an expandable section without needing custom ARIA attributes.
The native details element can be styled with CSS, though some browser-specific styling may be needed. The disclosure triangle can be customized, and you can apply transitions to the open/close animation for a smooth user experience.