It is used to group a heading with some type of related secondary content, such as a subheading or tagline. This secondary content will go inside a <p>.
Therefore, within a <hgroup> we can only find a <p> preceding a single header from <h1> to <h6> and another <p> below. It is not allowed to have more than one heading.
It has an implicit ARIA role generic, so it has no impact on the page outline. This impact is given by the header it contains.
- Type: block
- Self-closing: No
- Semantic value: No
Top comments (0)