HTML5中b/strong,i/em的区别
来源:互联网 发布:mac os升级不支持银联 编辑:程序博客网 时间:2024/05/19 16:23
作者:知乎用户
链接:https://www.zhihu.com/question/19551271/answer/12203586
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
链接:https://www.zhihu.com/question/19551271/answer/12521687
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
在HTML4.01中:
< b > < i > 是视觉要素(presentationl elements),分别表示无意义的加粗,无意义的斜体,表现样式为 { font-weight: bolder },仅仅表示「这里应该用粗体显示」或者「这里应该用斜体显示」,此两个标签在HTML4.01中并不被推荐使用;
< em > 和 < strong > 是表达要素(phrase elements)。 < em > (emphasized text)表示一般的强调文本,而 < strong > (strong emphasized text)表示比 < em > 语义更强的的强调文本。
而在新的 HTML5 工作草案 中:
< em > 和 < strong > 仍旧是表达要素(phrase elements)。但这时的 < strong > 表示html页面上的强调(emphasized text), < em > 表示句子中的强调(即强调语义)
对于 b 和 i 标签是这样定义的:
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 元素现在描述为在普通文章中突出不同意见或语气或其他的一段文本,例如:一个分类名称,一个技术术语,一个外语中的谚语,一个想法等。或者代表斜体的排版方式。
从规范中可以注意到:b 和 i 元素将被赋予真正的语义。更应有预见性注意 b 、i 与 strong 、em 的不同使用 。
- HTML5中b/strong,i/em的区别
- B,strong,I,em的区别
- <i>、<em>、<b>、<strong>的区别
- 关于B和strong以及i和em的区别
- <b>与<strong> <em>与<i>标签的区别
- B和strong以及i和em的区别
- 关于html标签中b和strong,i与em两个的区别
- HTML中<strong>与<b>,<em>与<i>标签的区别
- 网站SEO优化中tilte与h1的区别、b与strong的区别、i与em的区别
- html5中的b元素与strong元素,i元素和em元素有什么区别
- i, b, em, strong元素在HTML5中的新语义
- i, b, em, strong元素在HTML5中的新语义
- title与h3的区别、b与strong的区别、i与em的区别?
- title与h1的区别、b与strong的区别、i与em的区别?
- 关于html标签中b和strong,i与em两个的区别(物理标记和逻辑标记)
- <em><i>与<strong><b>
- title与h1的区别、b与strong的区别、i与em
- html5 a标签,img标签,em和i标签,strong和b标签,q标签
- DFS:POJ1190-生日蛋糕(基础搜索)
- zoj1586 最小生成树prim解法
- 集训Stage 1-Part 2-2017.7.3~7.10总结
- 【简记】Java Web 内幕——类加载机制,类与类加载器
- 回归算法的应用——信用卡欺诈检测案例
- HTML5中b/strong,i/em的区别
- Aciviti扩展
- java中的自动装箱与拆箱
- 定时器3控制PWM的输出脉冲_步进电机的控制
- 【Linux】中网络部分的端口分类详解
- rs.next()为false
- IE对http1.1 不支持201状态码(待确定)
- lua 函数初识(三)
- 找符合条件的最小子串