<b>
The <b> HTML element is used to draw the reader's attention to the element's contents, which are not otherwise granted special importance. This was formerly known as the Boldface element, and most browsers still draw the text in boldface. However, you should not use <b> for styling text or granting importance. If you wish to create boldface text, you should use the CSS font-weight property. If you wish to indicate an element is of special importance, you should use the <strong> element.
Browser support
| Feature | Desktop | Mobile | ||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Safari | Chrome Android | Safari iOS | |
| 1 | 12 | 1 | 1 | 18 | 1 | |
1+Supported (version) Not supported ※Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Notes 1 item(s)
Implementation note
- Before Firefox 4, this element implemented the `HTMLSpanElement` interface instead of the standard `HTMLElement` interface.
Syntax
HTML
<p>The <b>keywords</b> in this text are displayed in bold.</p>
<p>Use <strong>the `strong`</strong> tag to indicate importance.</p> Live demo
ki-wa-d. emphasis
B element in note pullki-wa-d thickcharacterdisplay.strong and. Difference also confirm.
PreviewFullscreen
Use cases
-
Using <b>
The <b> HTML element is used to draw the reader's attention to the element's contents, which are not otherwise granted special importance.
Cautions
- May not be supported in older browsers.
Accessibility
- Verify how this element is announced by screen readers.