October 17, 2018

HTML5 | Details tag

Hey,

Today we will learn about the new tag HTML5 introduced - details. This tag is for making you hide/show content on demand. Basically you can build the accordion without even writing any logical Javascript code. Isn't it amazing? It does make me go mad over this.




Why? 

Because anyone who has written the accordion from scratch know the pain very well. Now , when HTML is introducing a tag dedicated to this feature is awesome!!


Here is the code demo: 

https://codepen.io/NehhaSharma/pen/jeZmRN

Happy Learning!!

No comments: