Description:
The <b> tag specifies bold text. The HTML b tag makes its content rendered in bold font style. Creating bold text can be accomplished through the use of the <b> bold tag.
Differences Between HTML 4.01 and HTML5:
None
Note:
According to the HTML 5 specification, the <b> tag should be used as a LAST resort when no other tag is more appropriate. The HTML 5 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 use the <mark> tag.
Tip:
You can also use the CSS "font-weight" property to set bold text.
Examples:
| Code | View |
|---|---|
| <p>This is normal text – <b>and this is bold text</b>.</p> |
This is normal text – and this is bold text. |
| A piece in this text is rendered in <b>bold font style</b>. | A piece in this text is rendered in bold font style. |
The post HTML b tag appeared first on .