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.
I'm a self-taught Front End & JS Dev and professional learner with accessibility expertise. I'm passionate about breaking down concepts into relatable concepts, making it more approachable.
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!
For further actions, you may consider blocking this person and/or reporting abuse
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!