FANDOM



The HTML <b></b> element makes all contained text bold. Note that while it is not officially deprecated, the best practice is to prefer the (more flexible) CSS font-weight property in order to separate presentation from structure.

To apply this tag in an HTML document, use:

<b>Text to be bolded.</b>

This will generate: Text to be bolded.

Rendering

The <b> element corresponds to the bolder font weight.

Typical CSS representation

b {
  font-weight: bolder;
}

See Also

External links