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

Epcot Center

summary

<

p

Epcot is a theme park at Walt Disney World Resort featuring exciting attractions, international pavilions, award-winning fireworks and seasonal special events.

p

details

Try it »


Browser support

The numbers in the table indicate the first browser version number that supports the element.

Element
12.0 79.0 49.0 6.0 15.0

Tag Definition and Usage Notes

The tag defines a caption for [
The ](tag-details.html) element defines a visible heading. When the user clicks the heading, the details are displayed.

Differences between HTML 4.01 and HTML5

The tag is new in HTML5.

Tips and Notes

Note:

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


Global Attributes

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

Event attribute

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