Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML
tag

HTML
tag

Example

Use

element:

<

details

<

summary

Copyright 1999-2011.

summary

<

p

p

<

p

All content and graphics on this web site are the property of the company Refsnes Data.

p

details

Try it »


Browser support

Internet Explorer Firefox Opera Google Chrome Safari

Currently, only Chrome and Safari 6 support

tag.


Tag Definition and Usage Notes

The tag specifies supplementary details that are either visible or hidden from the user.
The tag is an interactive control that the user can open and close. Any form of content can be placed inside
the tag.
The content of the element is invisible to the user unless the open attribute is set.

Differences between HTML 4.01 and HTML5

The tag is new in HTML5.

Tips and Notes

**Tip:** Used together with

the tag, it can define a title for the details. The title is visible, and when the user clicks it, the details are displayed.


property

New : New attributes in HTML5.

property Value Description
openNew open Specifies whether the details are visible.

Global Attributes

The tag supports [HTML Global Attributes](/tags/ref-standardattributes.html).

Event attribute

The tag supports [HTML Event Attributes](/tags/ref-eventattributes.html).