Tag <b> HTML Reference



Example

Format text in a document:

<b>Bold text</b>

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

1. Definition and Usage

The <b> tag is the font-style tag. It renders content as bold text. Font-style tags are defined in HTML4, but it is strongly recommended to use CSS styling instead.


2. Differences Between HTML 4.01 and HTML5

None


3. Tips and Notes

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.


4. Standard Attributes

The <b> tag supports the Standard Attributes in HTML.


5. Event Attributes

The <b> tag also supports the Standard Event Attributes in HTML.


Relative articles