Make some text bold (without marking it as important):
<p>This is normal text - <b>and this is bold text</b>.</p>
Try it Yourself »
More "Try it Yourself" examples below.
The <b>
tag specifies bold text without any extra importance.
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;".
Element | |||||
---|---|---|---|---|---|
<b> | Yes | Yes | Yes | Yes | Yes |
The <b>
tag also supports the Global Attributes in HTML.
The <b>
tag also supports the Event Attributes in HTML.
Use CSS to set bold text:
<p>This is normal text - <span style="font-weight:bold;">and this is bold text</span>.</p>
Try it Yourself »
HTML tutorial: HTML Text Formatting
HTML DOM reference: Bold Object
Most browsers will display the <b>
element with the following default values:
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!