details

< html‎ | elements
Jump to: navigation, search

details

W3C Working Draft

Summary

The details element represents a disclosure widget from which the user can obtain additional information or controls.


Overview Table

DOM Interface HTMLDetailsElement

Attributes

open

If the open attribute is set on the details tag, it will be open when it's rendered.

Browser support

The <details> tag is currently only supported in Chrome and in Safari on Mac.


Compatibility

Do you think this data can be improved? You can ask to add by opening an issue or make a pull request.

Desktop

FeaturesChromeFirefoxInternet ExplorerOperaSafari
Basic support
12
Yes
?
none
?
none
15
Yes
6
Yes

Mobile

FeaturesAndroidFirefox MobileIE MobileOpera MobileSafari Mobile
Basic support
4.0
Yes
?
none
?
none
?
none
?
none

Examples

View live example

HTML

<details open="open">
	<p>Foo</p>
	<p>Bar</p>
	<p>Peter</p>
</details>



Related specifications

Specification Status Related Changes
HTML 5.1 W3C Working Draft