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 content #

an optional summary element, followed by flow content

Permitted attributes #

Descriptions for attributes specific to this element #

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;