It used to be that you would have to write a bunch of JavaScript to create some type of accordion widget with HTML. HTML5 added a new couple elements called details and summary for native support for this type of widget.

Code from video: https://gist.github.com/prof3ssorSt3v3/068de390c81454024a8e62e2da684e4b

#html5 #html

HTML5 Details and Summary Elements
2.50 GEEK