Header tag vs Hgroup

A header element typically contains:

* one or more heading elements (<h1> - <h6>)

  • logo or icon
  • authorship information

You can have several elements in one document.

vs.

The HTML <hgroup> element represents a multi-level heading for a section of a document. It groups a set of <h1>–<h6> elements.

To me is seems the same.

Use it with like:

<h1>text</h1>
<h2>text</h2>

Then whitch to use? As both mention to use it when use multiple h tags?

Thanks!

both u use both

<hgroup> acts as a wrapper for two one or more related heading elements possibly contained within a <header> element. It can only contain a group of <h1><h6> element(s), and it should be used for subtitles, alternative titles, and tag lines.

http://html5doctor.com/the-hgroup-element/

1 Like