Using the <summary> element:
![]()
The <summary> tag is currently supported only in Chrome and Safari 6.
The <summary> tag defines a visible heading for the <details> element. The heading can be clicked to view/hide the details.
The <summary> tag is new in HTML5.
Note: The <summary> element should be the first child element of the <details> element.
The <summary> tag also supports the Global Attributes in HTML.
The <summary> tag also supports the Event Attributes in HTML.
Your message has been sent to W3Schools.