DEV Community

loading...

Discussion on: JavaScript and Accessibility: Accordions

Collapse
anpos231 profile image
anpos231

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.

Collapse
lkopacz profile image
Lindsey Kopacz Author

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!