HTML <b> Tag

If this site has been useful, we’d love your support! Running this site takes time and resources, and every small contribution helps us keep creating valuable content. Consider buying us a coffee to keep things going strong!

Description

The <b> HTML tag, short for "bold," is a simple inline element used to apply bold formatting to text within a web page. When you enclose text within <b> opening and closing tags, it instructs the web browser to display that text with a heavier or thicker font weight, making it visually stand out from the surrounding text. While it was traditionally used for emphasizing text, it is considered a presentational element, and the more semantically meaningful <strong> tag is recommended for indicating strong importance or emphasis in modern HTML for better accessibility and search engine optimization.

Properties

Permitted Parents
Any element that accepts phrasing content
Content
Inline and text
Start/End Tags
Start tag: required, End tag: required

Example

This text is going to be <b>bolder</b>

Attributes

None

Global Attributes

The <b> tag also supports the Global Attributes in HTML5

Event Attributes

The <b> tag also supports the Event Attributes in HTML5

Browser Support

The following table will show you the current browser support for the HTML <b> tag.

Desktop
Edge Chrome Firefox Opera Safari
1211151
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview
18414114.4

Last updated by CSSPortal on: 30th September 2023