jump

HTML 5: The Markup Language (ARIA Edition)

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 = d:string "open" or d:string "" #
Specifies that the contents of the details element should be shown to the user.
region = #
(detailed attribute description to come)

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; }