If I remember correctly HTML has built in support for accordions natively (without JS!) But I don't remember how, or what tags were used for it. If anyone can find it, I'd be grateful.
It's the <details> tag. It doesn't have full support which is why I went through this, but I included the reference in the "Adding the ARIA attributes" section!
We're a place where coders share, stay up-to-date and grow their careers.
If I remember correctly HTML has built in support for accordions natively (without JS!) But I don't remember how, or what tags were used for it. If anyone can find it, I'd be grateful.
It's the
<details>
tag. It doesn't have full support which is why I went through this, but I included the reference in the "Adding the ARIA attributes" section!