The HTML <details></details>
element was introduced in HTML5. It is used to describe the details about a document, or parts of a document. It can be used together with the <summary>
element to create a header for the details. The header is visible, and could show the details when the user clicks on the header.
Attribute
Attribute | Value | Description |
---|---|---|
open |
open | Value is open . Defines if the details should be visible (present) or not (not present).
|
- Global Attributes
HTML example:
<details>This wiki was created in 2010.</details>