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)

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay