HTML details Tag
HTML details Tag
The details tag specifies additional details that the user can see on demand. It is used to create an interactive widget where users can either open it to see the content inside it or close it when does not need to see the content inside it. By default, it is closed. It is used in combination with the summary tag.
Attribute Explanation:-
Attribute | Value | Description |
---|---|---|
open | open | Specifies that details should be visible to the user. |
Syntax:-
Its syntax is:- < details >