HTML: The Markup Language

detailscontrol for additional on-demand information NEW # T

The details element represents a control from which the user can obtain additional information or controls on-demand.

Permitted contents #

one summary element, followed by flow content

Permitted attributes #

global attributes
Any attributes permitted globally.
open = "open" or "" (empty string) or empty #
Specifies that the contents of the details element should be shown to the user.

Additional constraints and admonitions #

Tag omission #

A details element must have both a start tag and an end tag.

Permitted parent elements #

any element that can contain flow elements

DOM interface #

interface HTMLDetailsElement : HTMLElement {
           attribute boolean open;

Typical default display properties #

details {
display: block; }