Web Platform Atlas
EN⚡RUUA⚡DE⚡FR⚡ES⚡PL⚡PT⚡ZH⚡JA⚡
Каталог / HTML / The hgroup element

4.3.7 The hgroup element

Статический предпросмотр (RU): для MDN, WPT, глоссария и BYOK-перевода откройте интерактивный Атлас.
⚡ Открыть главу в Атласе

4.3.7 The hgroup element

Категории:

потоковое содержимое.

Heading content.

Palpable content.

Контексты, в которых может использоваться этот элемент:

Where heading content is expected.

Контентная модель:

Zero or more p elements, followed by one h1, h2, h3, h4, h5, or h6 element, followed by zero or more p elements, optionally intermixed with script-supporting elements.

Опущение тегов в text/html:

Ни один из тегов не может быть опущен.

Атрибуты контента:

глобальные атрибуты

Специфика доступности:

Для авторов.

Для разработчиков.

Санитизация:

Default.

DOM-интерфейс:

Uses HTMLElement.

The hgroup element represents a heading and related content. The element may be used to group an h1–h6 element with one or more p elements containing content representing a subheading, alternative title, or tagline.

Here are some examples of valid headings contained within an hgroup element.

<hgroup> <h1>The reality dysfunction</h1> <p>Space is not the only void</p> </hgroup>

<hgroup> <h1>Dr. Strangelove</h1> <p>Or: How I Learned to Stop Worrying and Love the Bomb</p> </hgroup>