HTML | b Tag

The <b> tag in HTML is used to indicate the importance of the text. The text written within <b> tag display in bold size. You can do that by using CSS also there is a similar tag <strong> tag that has a similar effect on content.

Syntax:

<b> Contents... </b>

Example:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
    <head>
        <title>b Tag</title>
        <style>
            body {
                text-align:center;
            }
            h1 {
                color: green;
            }
        </style>
    </head>
    <body>
        <h1>GeeksforGeeks</h1>
        <h2><b> Tag</h2>
        <p><b>GeeksforGeeks:</b> A <b>computer science</b
        portal for geeks</p>
    </body>
</html>                    

chevron_right


Output:
btag
CSS Default setting:

filter_none

edit
close

play_arrow

link
brightness_4
code

b { 
  font-weight: bold;
}

chevron_right


Supported Browser: The browser supported by <b> tag are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari


My Personal Notes arrow_drop_up


If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.