hgroup tag removed from HTML5 specification

hgroup goes the way of the dinosaur

It would seem that the <hgroup> element has gone the way of the dinosaur. According to a message on the W3C public mailing list, the element has been removed from the HTML5.1 specification. The W3C Validator now returns the following error for any instance of <hgroup>:

WARNING: The hgroup element is obsolete. To mark up subheadings, consider either just putting the subheading into a p element after the h1-h6 element containing the main heading, or else putting the subheading directly within the h1-h6 element containing the main heading, but separated from the main heading by punctuation and/or within, for example, a span class="subheading" element with differentiated styling. To group headings and subheadings, alternative titles, or taglines, consider using the header or div elements.

So, if you've been using the <hgroup> on your to group your headings on your HTML5 websites, it's probably time to go back and remove them. As suggested above, <:header> and <div> can be used to group headings and subheadings, as an alternative to the now defunct <hgroup>.


Comments

Avatar of George Probst
Posted by George ProbstJan 27, 2014 at 5:36 pm

TEST!

Leave a comment on this post