HTML <b> Tag
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 | |||||
12 | 1 | 1 | 15 | 1 |
Tablets / Mobile | |||||
18 | 4 | 14 | 1 | 1 | 4.4 |
Last updated by CSSPortal on: 30th September 2023