When writing in HTML, the tag is an inline element that makes text bold. It is useful when you want to create definitions or make a certain word or phrase stand out. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.
Example code
Use the <b> tag to create bold text on your pages.
The above code, rendered in a web browser, looks like this:
- Example code
- Attributes
- Compatibility
- Related information
Use the tag to create bold text on your pages.
Attributes
Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the tag does not have any unique attributes, it does utilize all of the standard attributes.
Compatibility
Browser, Compatibility, Container tag, HTML em tag, HTML strong tag, Web design terms
Related information
- How to change the text line spacing.
- How to center text in HTML.
- HTML and web design help and support.