Tag: detailstag
-
How to create an accordion in HTML5?
Creating an accordion got easier in HTML5. You don’t need to use div element and javascript anymore. You just need to use the <details> element. The label in the accordion can be represented using <summary> element nested inside the <details> element and the data inside the accordion can then be represented using <p> (paragraph) element…