Is the hgroup tag unusable?

6

I was seeing some video tutorials on HTML5 and I came across the hgroup tag that serves to group h1 , h2 ..., reading this this morning I saw that it was removed from HTML5. Does it confer? is not it necessary to study it anymore?

    
asked by anonymous 30.07.2014 / 13:26

2 answers

14

After a lot of discussion the element <hgroup>

30.07.2014 / 15:39
1

As the friend @Maujor commented, the tag <hgroup> is deprecated link

But as a complement I would like to leave a more semantic and updated solution using the <header> tag.

According to W3C:

  

A header element is intended to usually contain the section's heading (an h1–h6 element), but this is not required. The header element can also be used to wrap a section's table of contents, a search form, or any relevant logos.

Translating:

The header element can also be used to group the index of a section, but this is not necessary. The h1 – h6 element can also be used to group the index of a section, a search form or any relevant logo. "

Source: link

Basic example:

<header>
 <h1>Welcome to...</h1>
 <h2>StackOverflow!</h2>
</header>
    
02.01.2019 / 15:40