DEV Community

Discussion on: How to build an Accordion Menu using HTML, CSS and JavaScript

auroratide profile image
Timothy Foster

Indeed you are right! I hadn't realized that technicality between summary and heading, and thought putting a heading in the summary would be enough.

There are other big things missing from a pure details+summary implementation, like collapsing other details and navigation with arrow keys. I suppose it depends on the degree to which a true accordion is needed or if a set of collapsibles is enough.