Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML <summary> tags


May 05, 2021 HTML Reference Manual


Table of contents


HTML slt;summary> tags

The label element can contain detailed information as the title of the element, but it is not displayed by default and requires a click to display the details, refer to the following example:

Using the elements of slt;summary:

<details>
<summary>Copyright 1999-2011.</summary>
<p> - by Refsnes Data. All Rights Reserved.</p>
<p>All content and graphics on this web site are the property of the company Refsnes Data.</p>
</details>

Try it out . . .

Browser support

HTML <summary> tags HTML <summary> tags HTML <summary> tags HTML <summary> tags HTML <summary> tags

Currently, only Chrome and Safari 6 support the hashtags.


Label definition and instructions for use

The label defines a visible title for the element. Details are displayed when the user clicks on the title.


The difference between HTML 4.01 and HTML5

The label is the new label in HTML5.


Tips and comments

Note: The element should be the first child element of the element.


Global properties

The label supports the global properties of HTML.


The event property

The tag supports the event properties of HTML.