htm 中 <b>和<strong>的区别

显示上两者没有任何区别,都是粗体
<b>:为了加粗而加粗,推荐使用 css font-weight 属性来创建粗体文字。
<strong>:为了强调而加粗,表示十分重要。在网页中使用 strong 更容易被搜索到。

 

MDN链接:

b标签:https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/b
strong标签:https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/strong

posted @ 2019-03-25 17:42  蓝空魔星  阅读(242)  评论(0编辑  收藏  举报