当前位置: 首页 > 图文教程 > 网页制作 > HTML/XHTML教程 > HTML5中语义化 b 和 i 标签

HTML/XHTML教程
HTML之框架标记
HTML之多媒体
HTML之表格标记
HTML一般概念
HTML文件HEAD内部标记浅析
HTML文档中小meta标签的大作用
html教学+HTML语法大全
HTML的排版标记
HTML参考
HTML表单元素覆盖样式元素问题及其补救之道
HTML标签详解
HTML标记大全参考手册
HTML 标记一览
Email地址在网页中的保护
Cool Web Scrollbars - 定制网页的滚动条
“画中画”效果--谈IFRAME标签的使用
给网页文字加上即时提示
改变浏览者的鼠标型状
防止空连接#返回到页面顶端
创造收藏夹中的个性化图标

HTML/XHTML教程 中的 HTML5中语义化 b 和 i 标签


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-11   浏览: 70 ::
收藏到网摘: n/a


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 emboldened.
// b 元素现在描述为在普通文章中仅从文体上突出的不包含任何额外的重要性的一段文本。例如:文档概要中的关键字,评论中的产品名。或者代表强调的排版方式。
The i element now represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, a thought, a ship name, or some other prose whose typical typographic presentation is italicized. Usage varies widely by language.
// i 元素现在描述为在普通文章中突出不同意见或语气或其他的一段文本,例如:一个分类名称,一个技术术语,一个外语中的谚语,一个想法等。或者代表斜体的排版方式。