Movatterモバイル変換


[0]ホーム

URL:


  1. Веб-технологии для разработчиков
  2. HTML
  3. Справка по HTML
  4. Элемент
  5. <hgroup>

This page was translated from English by the community.Learn more and join the MDN Web Docs community.

View in EnglishAlways switch to English

<hgroup>

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since июль 2015 г..

HTML-элемент<hgroup> представляет заголовок и связанное с ним содержимое. Он группирует одиночные элементы<h1>–<h6> в один или несколько<p>.

Интерактивный пример

<hgroup>  <h1>Frankenstein</h1>  <p>Or: The Modern Prometheus</p></hgroup><p>  Victor Frankenstein, a Swiss scientist, has a great ambition: to create  intelligent life. But when his creature first stirs, he realizes he has made a  monster. A monster which, abandoned by his master and shunned by everyone who  sees it, follows Dr Frankenstein to the very ends of the earth.</p>
hgroup {  text-align: right;  padding-right: 16px;  border-right: 10px solid #00c8d7;}hgroup h1 {  margin-bottom: 0;}hgroup p {  margin: 0;  font-weight: bold;}

Атрибуты

Этот элемент поддерживает толькоглобальные атрибуты.

Техническая сводка

Категория информацииFlow content, heading content, palpable content.
Permitted contentOne or more<h1>,<h2>,<h3>,<h4>,<h5>, and/or<h6>.
Tag omission
Permitted parent elementsAny element that acceptsflow content.
DOM interfaceHTMLElement

Примеры

html
<hgroup>  <h1>Главный заголовок</h1>  <h2>Вторичный заголовок</h2></hgroup>

Спецификации

Specification
HTML
# the-hgroup-element

Совместимость с браузерами

Смотрите также

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp