What's stopping me from using arbitrary tags in HTML?

前端 未结 7 946
礼貌的吻别
礼貌的吻别 2021-01-11 15:36

Even the new HTML5 tags aren\'t enough to describe structures without falling back to divs. What\'s stopping me from changing:

7条回答
  •  余生分开走
    2021-01-11 16:20

    One reason is that Internet Explorer (and earlier versions of Firefox) don't have a fallback for tags that are not defined and wind up ignoring them for both styling and nesting. Without a shiv, your site will break horribly in those browsers.

提交回复
热议问题