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

HTML details open Attribute

HTML
open property

HTML details Tag Reference HTML

tag

Example

An open/visible

element:

<

details

open

<

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 ExplorerFirefoxOperaGoogle ChromeSafari

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 tag is new in HTML5.

Differences between HTML and XHTML

In XHTML, attribute minimization is not allowed, and the open attribute must be defined as:

.


Syntax


HTML details Tag Reference HTML

tag