Home  >  Article  >  Web Front-end  >  为什么HTML5移除了big标签却新增了small标签?

为什么HTML5移除了big标签却新增了small标签?

WBOY
WBOYOriginal
2016-06-07 08:42:342701browse

除了一个变大一个变小,这两个标签的作用不是相似的么。

回复内容:

当谈论HTML标记时,永远不要谈论「这个标记的显示效果是什么」,这是CSS负责的,也是HTML5标准移除了一部分视觉标签(如你提到的)的原因。你应当考虑的是「这个标记的语义是什么」。那么标记的语义是什么呢?根据W3C:
Although previous versions of HTML defined the small element only in presentational terms, the element has now been given the specific semantic purpose of representing those parts of documents that are often referred to as “the fine print” or “the small print”.
也就是说这个标记用来表示“the fine print” or “the small print”。所谓fine print,就是类似于报纸广告上的「重大促销,全场五折!(一切解释权归XX所有)」中的括号部分,类似的fine print还有
免责声明 / 许可证声明 / 注意事项 / 对标语的详细解释等等。也就是说,当你的页面里有这样的fine print时,应当使用标记
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn