Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Эта статья нуждается в техническом обзоре. Как вы можете помочь.

Эта статья нуждается в редакционном обзоре. Как вы можете помочь.

Наши волонтёры ещё не перевели данную статью на Русский. Присоединяйтесь к нам и помогите закончить эту работу!

The HTML <summary> element is used as a summary, caption, or legend for the content of a <details> element.

Note: If the <summary> element is omitted, the heading "details" will be used.
Note: The default style for <summary> is display:list-item per HTML standard.  If the style is being changed to display:block, the disclosure triangle will be dismissed, which is expected. See Bug 1283989 for more information.

Usage context

Permitted content Phrasing content or one element of Heading content
Tag omission None, both the start tag and the end tag are mandatory.
Permitted parent element The <details> element.
Normative document HTML5, section 4.11.2

Attributes

This element only includes the global attributes.

DOM interface

This element implements the HTMLElement interface.

Examples

In summation, get details from the link on the next line

Please see the <details> page for examples on <summary>.

Specifications

Specification Status Comment
WHATWG HTML Living Standard
The definition of '<summary>' in that specification.
Living Standard  
HTML5.1
The definition of '<summary>' in that specification.
Working Draft Initial definition

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 12 49.0 (49.0)[1] No support No support 6
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support 4.0 49.0 (49.0)[1] No support No support No support

[1] This feature is available since Firefox 47 behind the preference dom.details_element.enabled, defaulting to false, except on Nightly and Aurora versions (bug 1241750). Support for it is enabled by default, i.e. the preference is defaulting to true, since Firefox 49.0 (bug 1226455).

See also

Метки документа и участники

 Обновлялась последний раз: SphinxKnight,