description & Usage
The <summary> tag is used to provide a title for the <details> tag.
With this tag, the user can open and close, and view additional information by clicking on the title.
The <summary> tag is placed inside the <details> tag and on the first line of it.
The <summary> tag is placed inside the <details> tag and on the first line of it.
For more information, please review the <details> tag page.
Browser compatibility and Support
# | Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
<summary> |
Global Attributes
The <summary> tag supports the HTML Global Attributes.
Event Attributes
The <summary> tag supports the HTML Event Attributes.
More Examples
Default CSS
Most browsers will display the <summary> tag with the following default style: