Summary -
In this topic, we described about the <b> tag along with detailed example.
Bold text is used to display the text as bold. The <b> tag is used for specifying bold text. Any text in between <b>..</b> displays as bold. <b> element is nested element.
<b> and <strong> is not same. <b> tag is to markup text as bold without conveying any extra importance.
<strong> tag is markup text as bold with conveying some extra importance. <b> tag should be used as a last option when no other tag is more appropriate.
Syntax -
<b>.. text here.. </b>
Example -
<!DOCTYPE html>
<html>
<head>
<title>Bold text example.. </title>
</head>
<body>
<p>This is <b>bold</b> text</p>
</body>
</html>
Output -
This is bold text