DEV Community

Cover image for HTML tags | hgroup
Carlos Espada
Carlos Espada

Posted on

1

HTML tags | hgroup

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

Definition and example | Support

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay