Introduction
The ‘<b>
‘ tag is used in HTML to represent text that should be displayed in bold. When you enclose text within ‘<b>
‘ tags, it instructs the browser to render that text with a bold font style.
Here is an example :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<p>Hello my name is <b>Kamal Kumar</b>. I am a <b>teacher</b>. </p>
</body>
</html>
Output :
In above example we write “kamal kumar” and “teacher” in ‘<b>‘ so they are in bold.
We ca use it in for making heading, highlighting keywords and styling text etc.