<b> : Bold element

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 :

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.

Leave a Comment