1.

HTML Elements: Interactive Elements

Answer»


  • <details>...</details>: The HTML Details Element (<details>) produces a disclosure widget that only shows information when it is toggled to the "open" state.


  • <summary>...</summary>:  The HTML Disclosure Summary element (<summary>) specifies a summary, caption, or legend for the disclosure box of the details> element.

An example that shows the usage of the <summary> element and the <details> element is given below:

<details>
<summary>Summary of the topic</summary>
Java is an Object Oriented Programming Language.
</details>


Discussion

No Comment Found