<summary> tag in HTML5

The <summary> tag defines a visible heading in <details> elements, and clicking the <summary> element toggles the state of the parent <details> element open and closed.

Important Description

  • The <summary> tag is new in HTML5.
  • The <summary> element should be the first child element of the <details> element.
  • Open and close tag required of <summary>.

Syntax Example


Example of <summary> tag

Result Look Like

Interview Questions for Freshers


Interview questions are available including C, C++, HTML, SQL, HR, etc.

<summary> Tag Browser Support

The <summary> tag is not supported in Internet Explorer & Microsoft Edge browsers.

Element Chrome Edge Firefox Safari Opera
<summary> Yes Not Supported Yes Yes Yes
Version 12.0 Not Supported 48.0 6.0 15.0

Global Attributes

Event Attributes

Advertise With Us

We offer sponsored posts and guest posts with do-follow links, back-links, and other advertising services, To advertise email us at ""

© 2021 GDATAMART.COM (All Rights Reserved)