About Lesson
The <details> tag is used for the content/information which is initially hidden but could be displayed if the user wishes to see it. This tag is used to create an interactive widget that the user can open or close. The content of the details tag is visible when opening the set attributes. The summary tag is used with the details tag for specifying visible heading.
Syntax:
<details>
<summary> Text content </summary>
<div> Content . . . > </div>
</details>
Exercise Files
No Attachment Found
Join the conversation