HTML summary tag


<summary> tag in HTML

The <summary> tag is written inside the <details> tag.

The <summary> element is used to specify a caption or summary for the contents present inside the <details> element.

Example 1

Try Yourself

Example 2

Try Yourself