what other tag can be used to replace hgoup?

0

I am studying html5 and I learned that the hgroup tag is no longer being used. did you want to know which other tag can be used to replace?

    
asked by anonymous 24.09.2018 / 22:52

2 answers

2

Other than the response quoted as duplicate, in which it only proves that the percentage of% has been discontinued. Tag hgroup is out of order?

Currently, according to the Mozilla documentation you can use the <hgroup> tag to group your headings: link

  

The <header> element is not sectioning content and therefore does not   enter a new section in the outline. That said, the <header> element   is intended to contain the surrounding section    <header> element), but this is not required.

Translation:

"The h1–h6 element is not a sectioning content and therefore does not introduce a new section in the schema. That being said, a <header> element must contain the heading of the surrounding section (a <header> element %), but this is not necessary. "

Ex:

<header>
    <h1>Meu título principal</h1>
    <h2>Meu subtítulo</h2>
</header>

This way you keep the semantics of the structure and manage to group your titles

    
25.09.2018 / 00:40
1

If you just want to group the titles, then use <div> , I do not know any other tags that have a better semantic value for that case (since hgroup has been removed)

    
25.09.2018 / 00:11