<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

<details>
  <summary>Overview</summary>
</details>

Example of <summary> tag

Result Look Like

Interview Questions for Freshers

- GDATAMART.COM

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

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

© 2023 GDATAMART.COM (All Rights Reserved)