6

TIL you can create accordion design by simply using details and summary html tag and without any JS and CSS.
The discovery was awesome but felt stupid not knowing it and having wasted a couple of hours making it myself.

Comments
  • 5
    But you shouldn't be doing it unless you actually have details and summary in terms of content.

    Abusing HTML tags for their default appearance is a noob mistake in HTML.
  • 1
    @Fast-Nop isn't accordion designed for summary and details in the first place?
  • 1
    @iiii Yeah it should - but tag abuse is so rampant that HTML devs often lose track of semantics.
Add Comment