Description:

The HTML <summary> tag specifies a summary/caption that can be used in conjunction with the HTML5 <details> tag. This summary/caption can be clicked on to expand/collapse the details as required.

Example Code:
<details>
<summary>About HTMLPortal</summary>
<p>HTMLPortal is a site dedicated to helping you with HTML.</p>
</details>
Result:
About HTMLPortal

HTMLPortal is a site dedicated to helping you with HTML.

Attributes:

None

Global Attributes:

The <summary> tag also supports the Global Attributes in HTML5

Event Attributes:

The <summary> tag also supports the Event Attributes in HTML5