HTML b Tag defines the bold text.
Table of Contents
Syntax of HTML b Tag
The Syntax of HTML b Tag is shown below. It has both opening and closing tags.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<b>HOW TO CODE SCHOOL.</b>
</body>
</html>
Usage of HTML b Tag
HTML b Tag makes the text bold but it doesn't increase it's importance. For the important text you should use strong tag.
Example of HTML b Tag
Consider a simple example of HTML b Tag. The word bold is placed inside b Tag.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
This Text is <b>bold.</b>
</p>
</body>
</html>
Output
This Text is bold.
Browser Support for HTML b Tag
All major browsers including Internet Explorer support HTML b Tag.
Global Attributes Support in HTML b Tag
HTML b Tag supports all Global Attributes.
Event Attributes Support in HTML b Tag
HTML b Tag supports all Event Attributes.
HTML b Tag Video
Watch our video on HTML b Tag and subscribe our Youtube Channel.