HTML 5 <summary> Tag
Example
Details about the document:
<details>
<summary>HTML 5</summary>
This document teaches you everything you have to learn about HTML 5.
</details> |
View it » |
Definition and Usage
The <summary> tag contains a header for the "details" element, which is used to describe details about a document, or parts of a document.
Differences Between HTML 4.01 and HTML 5
The <summary> tag is new in HTML 5
Tips and Notes
Tip: Use it together with the <details> tag to make your own
header for the details. The header is visible, and could show the
details when the user clicks on the header.
Note: The "summary" element should be the first child element of the
"details" element.
Standard Attributes
The <a> tag also supports the Standard Attributes in HTML 5.
Event Attributes
The <a> tag also supports the Event Attributes
in HTML 5.
|