Hi Friends
Why was the <hgroup>
tag added to HTML5? What’s their technical usage? What’s the grouping advantage?
Hi Friends
Why was the <hgroup>
tag added to HTML5? What’s their technical usage? What’s the grouping advantage?
The problem with headers and their 'levels' arises when you generate dynamic content. Let's say you have a more or less fixed H1 and H2 combo and the page, and you have an article section with dynamic content that comes from a rich editor.
Traditionally it would be problematic at best to try and guess which header leveles to allow in the editor markup.
I haven't studied the hgroup element in detail, but I have read the article above and others, and it seems logical to me that the hgroup element can be used to 'reset' the level numbering, so that dynamic content in a rich editor can start using H1.