Easy Tutorial
❮ Att Textarea Placeholder Att Img Ismap ❯

HTML <details> open Attribute

HTML <details> Tag

Example

A <details> element that is open/visible:

&lt;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>

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, attributes cannot be abbreviated, so the open attribute must be defined as: <details open="open">.


Syntax

❮ Att Textarea Placeholder Att Img Ismap ❯