HTML <b> Tag
Definitie en gebruik
<b>
De tag definieert geen extra belangrijke vetgedrukte tekst.
Zie ook:
HTML tutorial:HTML Text Formatting
HTML DOM referentiemanual:Vet object
Voorbeeld
Voorbeeld 1
Maak enkele tekst vet (geen extra belanghebbend markeren):
<p>Dit is een gewoonlijke tekst - <b>Dit is vetgedrukte tekst</b>.</p>
Voorbeeld 2
Gebruik CSS om vetgedrukte tekst in te stellen:
<p>Dit is een gewoonlijke tekst - <span style="font-weight:bold;">Dit is vetgedrukte tekst</span>.</p>
Tips and Comments
Note:According to the HTML5 specification, the <b> tag should be the last choice and should only be used when there is no more appropriate tag. The specification indicates that <h1> to <h6> tags should be used to represent headings, the <em> tag should be used to indicate emphasized text, the <strong> tag should be used to indicate important text, and the <mark> tag should be used to indicate marked/highlighted text.
Tip:You can also use the following CSS settings to bold text:font-weight: bold;
Global Attributes
<b>
The tag also supports Global Attributes in HTML.
event attributes
<b>
The tag also supports Event Attributes in HTML.
Default CSS Settings
Most browsers will display the following default values <b>
Element:
b { font-weight: bold; }
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |