DEV Community


Discussion on: JavaScript and Accessibility: Accordions

anpos231 profile image

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.

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!