The <details> element represents a hidden container, under which users can obtain more information about the article or any other. To release the hidden details, a user has to click on the <summary> element that must be added as the first child of the parent <details> element.

Syntax:

<details></details>

Attributes:

NOTE: Currently <details> element is not supported by the Internet Explorer, as well as Firefox.

Example

The details and summary tags example:

 

›› go to examples ››