<details> : Details disclosure element

Introduction

The ‘<details>‘ element in HTML is used to create a disclosure widget from which the user can obtain additional information or controls. It is often used to create collapsible content sections, commonly known as “accordion” or “collapsible” sections.

Here is an example :

Output :

And when we click on the button it will give the more information. Like this

Leave a Comment