HGROUP element removed from the HTML5 Specification. What alternative technique can be used instead?

后端 未结 4 1450
难免孤独
难免孤独 2021-02-14 05:51

As some of you would of heard the hgroup element is being removed from the HTML5 Specification. (For more info, see the W3C HTML Working Group\'s decision on reques

4条回答
  •  隐瞒了意图╮
    2021-02-14 06:19

    This is the technique that I currently use on my personal site to achieve the effect of having a heading with a sub-title:

    Jordan Clark Personal and Professional Website

    (Then, of course, I simply use CSS to re-style the element. I also personally believe that my technique is more semantically accurate than just using a paragraph -- and although I am no SEO expert, I am sure that by keeping the sub-title text within the h1 would give it higher value than a basic paragraph.)

提交回复
热议问题