HTML <b> 标签
例子
Make some text bold (without marking it as important):
<p>This is normal text - <b>and this is bold text</b>.</p>
亲自尝试 »
More "Try it Yourself" examples below.
定义和用法
这 <b>
tag specifies bold text without any extra importance.
Tips and Notes
Note: According to the HTML5 specification, the <b>
tag should be used as a LAST resort when no other tag is more appropriate. The specification states that headings should be denoted with the <h1> to <h6> tags, emphasized text should be denoted with the <em> tag, important text should be denoted with the <strong> tag, and marked/highlighted text should be denoted with the <mark> tag.
Tip: You can also use the following CSS to set bold text: "font-weight: bold;".
浏览器支持
元素 | |||||
---|---|---|---|---|---|
<b> | 是的 | 是的 | 是的 | 是的 | 是的 |
全局属性
这 <b>
标签还支持HTML 中的全局属性.
事件属性
这 <b>
标签还支持HTML 中的事件属性.
More Examples
例子
Use CSS to set bold text:
<p>This is normal text - <span style="font-weight:bold;">and this is bold text</span>.</p>
亲自尝试 »
相关页面
HTML tutorial: HTML Text Formatting
HTML DOM 参考: Bold Object
默认 CSS 设置
大多数浏览器会显示 <b>
元素具有以下默认值: