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:
- open; Defines that the <details> tag should be opened by default
- global attributes
- event attributes
NOTE: Currently <details> element is not supported by the Internet Explorer, as well as Firefox.
Example
The details and summary tags example:
Comments
No comments have been made yet.
Please login to leave a comment. Login now