ⓘ details – control 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 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 #
-
The interactive element details must not
appear as a descendant of the a element.
-
The interactive element details must not
appear as a descendant of the button element.
Permitted parent elements #
any element that can contain
flow elements
DOM interface #
interface HTMLDetailsElement : HTMLElement {
attribute boolean open;
};
Typical default display properties #