elibraryportal Logo

HTML <details> tag

It specifies additional details that the user can open and close on demand. The details tag is often used to create an interactive widget that the user can open and close. By default, the widget is closed.

Attributes

  • open :- Specifies that the details should be visible (open) to the user

Syntax:-

Example:-

Test it Now