HTML <details> openAttribute
Examples
An open/visible <details> element:
<details open>
<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 Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
Currently only Chrome and Safari 6 support the open attribute.
Definition and Usage
The open attribute is a boolean attribute.
The open attribute specifies that the details should be visible on the HTML page.
Differences between HTML 4.01 and HTML5
The <details> tag is new in HTML5.
Differences between HTML and XHTML
In XHTML, attribute minimization is forbidden, and the open attribute must be defined as: <details open="open">.
Syntax
<details open>
HTML <details> tag Other Extensions