HTML <b> 标签
更多“自己尝试”的例子见下文。
定义和用法
the <b>
tag specifies bold text without any extra importance.
提示和注释
注意:根据 HTML5 规范,<b>
标签应作为最后的手段使用,当没有其他标签更合适时。规范指出,标题应使用 <h1> 到 <h6> 标签表示,强调文本应使用 <em> 标签表示,重要文本应使用 <strong> 标签表示,标记/高亮文本应使用 <mark> 标签表示。
提示: 您也可以使用以下 CSS 来设置粗体文本:“font-weight: bold;”。
浏览器支持
元素 | |||||
---|---|---|---|---|---|
<b> | 是 | 是 | 是 | 是 | 是 |
全局属性
the <b>
tag also supports the Global Attributes in HTML.
事件属性
the <b>
tag also supports the Event Attributes in HTML.
更多示例
相关页面
HTML 教程:HTML 文本格式化
HTML DOM 参考: Bold Object
默认 CSS 设置
Most browsers will display the <b>
element with the following default values