Learn how to create a tree view with CSS and JavaScript.
Read on how to do it in this tutorial: https://www.w3schools.com/howto/howto_js_treeview.asp
Tree View
A tree view represents a hierarchical view of information, where each item can have a number of subitems.
Click on the arrow(s) to open or close the tree branches.
Try it yourself here: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_treeview