{"id":1195,"date":"2013-04-12T12:44:37","date_gmt":"2013-04-12T03:44:37","guid":{"rendered":"http:\/\/www.santoshkori.com\/blog\/?p=1195"},"modified":"2013-04-12T12:44:37","modified_gmt":"2013-04-12T03:44:37","slug":"w3c-drops-hgroup-tag-from-html5-spec","status":"publish","type":"post","link":"https:\/\/www.santoshkori.com\/blog\/w3c-drops-hgroup-tag-from-html5-spec\/","title":{"rendered":"W3C Drops \u2018hgroup\u2019 Tag From HTML5 Spec"},"content":{"rendered":"<p>If you\u2019ve been using the HTML5 hgroup tag, now would be a good time to stop. The hgroup tag is in the process of being removed from the W3C\u2019s HTML5 specification.<br \/>\nWhile the official reason for hgroup\u2018s demise is the lack of support for hgroup semantics \u2014 the W3C requires two \u201creasonably complete implementations\u201d \u2014 hgroup is fraught with accessibility problems and lacks many compelling use cases.<\/p>\n<p>The hgroup tag was intended to be a way to group h1-h6 tags, for example a header and a subheading, but the semantics behind the tag mean that only the first header in an hgroup is visible to any accessibility API. As Steve Faulkner, co-editor of the HTML5 spec, writes on the W3C mailing list, this \u201ceffectively removes any notion of a subheading semantic for users and any way for it to be conveyed via an accessibility API.\u201d<\/p>\n<p>In other words hgroup ends up being semantically no different than a div tag, which is why Faulkner called for hgroup to be removed from the spec in the first place. As of this writing it\u2019s still there, but Faulkner says he\u2019s \u201cworking on the edits\u201d (which will include some advice on how to handle groups of header tags).<\/p>\n<p>So what should you do if you\u2019ve used hgroup in your code? Well, if you can, consider removing it. But the browser support \u2014 which is limited to parsing and CSS \u2014 won\u2019t likely change. And it\u2019s also possible that some compelling use case will come up that motivates the W3C to add it to the HTML 5.1 spec (one hopes with better semantic rules) and browser to support it. In the mean time though, slowly step away from the hgroup and no webpages get hurt.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you\u2019ve been using the HTML5 hgroup tag, now would be a good time to stop. The hgroup tag is in the process of being removed from the W3C\u2019s HTML5 specification. While the official reason for hgroup\u2018s demise is the lack of support for hgroup semantics \u2014 the W3C requires two \u201creasonably complete implementations\u201d \u2014 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[245],"tags":[565,566,564],"class_list":["post-1195","post","type-post","status-publish","format-standard","hentry","category-html5","tag-hgroup-tag-remove-from-html5-spec","tag-hgroup-tag-removed","tag-w3c-drops-hgroup-tag-from-html5-spec"],"_links":{"self":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/comments?post=1195"}],"version-history":[{"count":2,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1195\/revisions"}],"predecessor-version":[{"id":1197,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1195\/revisions\/1197"}],"wp:attachment":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/media?parent=1195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/categories?post=1195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/tags?post=1195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}