首页 相关文章 HTML5中语义化 b 和 i 标签

HTML5中语义化 b 和 i 标签

b 和 i 标签在现在的 Web 标准潜规则中是不推荐使用,甚至是反对使用的,因为认为他们只是“表现”粗体和斜体,而没有任何“语义”。更多的用 strong 和 em 标签代替。

而在新的 HTML5 工作草案 中对于 b 和 i 标签是这样定义的:

从规范中可以注意到:b 和 i 元素将被赋予真正的语义。更应有预见性注意 b 、i 与 strong 、em 的不同使用 。

扩展阅读:

HTML4 到 HTML5 的变化
A Preview of HTML 5

The b element now represents a span of text to be stylistically offset from the normal prose without conveying any extra importance, such as key words in a document abstract, product names in a review, or other spans of text whose typical typographic presentation is embo...[ 查看全文 ]

2016-02-19 标签:

HTML5中语义化 b 和 i 标签的相关文章

手机页面
收藏网站 回到头部