HTML <summary> tag

Updated: 10/11/2017 by Computer Hope

HTML summary tagWhen writing in HTML, the <summary> tag is used to designate a heading for a <details> element. Upon clicking the heading, additional details are shown. It is useful when you would like to include extra information without taking up space. The following sections contain information about this tag, including an example of it in use, as well as related attributes and browser compatibility.

Example code

<summary>Here is some information.</summary>
<p>Here are additional details about this information.</p>

Example result

Here is some information.

Here are additional details about this information.


Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the <summary> tag does not have any unique attributes, it does utilize all of the standard attributes.


Internet Explorer Firefox Safari Opera Chrome
Not supported Not supported 6.0+ 15.0+ 12.0+

Browser, Compatibility, Interactive, Web design terms, Widget