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

猜你喜欢

转载自www.cnblogs.com/lankongclub/p/10595176.html
htm