HTML <summary> Tag


The summary tag is used to establish a visible heading for the <details> element. The information can be viewed or hidden by clicking the header.

Please keep in mind that the <summary> element should be the first child element of the <details> element.

Syntax

Example

Preview

Supported Browsers

Element Chrome Firefox Safari Edge / IE Opera
<summary> 12.0 49.0 6.0 79.0 15.0