join: new@juude



get alerts for new articles






CLOSE WINDOW

join: new@juude



get alerts for new articles






CLOSE WINDOW
html5

Structural Elements, Layout Tags and More


<hgroup> <hgroup> W3C

THE <hgroup> TAG IS NOW OBSOLETE IT IS NO LONGER PART OF THE W3C HTML SPECIFICATION

January 21, 2013
I stand corrected
from twitter

January 20, 2013  W3C


A while ago I gave the impression that  the hgroup element was no longer part of the HTML specification, this is not the case at least  for the moment. (January 2014)  W3C still lists this element as part of the specification. You can also access the ongoing discussion regarding the possible changes/replacement for hgroup also at W3C.

WHATWG


As of January 17, 2014, WHATWG still lists the <hgroup> element as part of the HTML Specification. WHATWG also lists Real world examples on <hgroup>usage.

USAGE


Should it stay part of the specification here is how to use it:
The  hgroup element is used to group headings together. It must contain at least two of the heading elements and no other information. It is for grouping a title with a subtitle. It can contain different combinations such as <h1> with <h2.> or <h3> with <h4> etc.

For those of you that create headings with display: inline ( to get rid of the unsightly gap) and then add a <br> you will not longer be able to do this because it will not validate if a <br> is inside an hgroup. You need to play with the margins inorder to reduce the gap.
Attributes: All Global