Skip to content
Related Articles

Related Articles

How to write bold text using HTML ?

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 02 Jun, 2020

In this article, we will write Bold Text in HTML by using the <b> tag in the document. It is used to indicate the importance of the text. The text is written within <b> tag display in bold size. You can do the same things by using CSS also and there is a similar tag <strong> tag that has a similar effect on content.


<b> Contents... </b>


<!DOCTYPE html>
        Write bold text 
        using HTML tags
        body {
            text-align: center;
        h1 {
            color: green;
        Write bold text 
        using HTML tags.
        <b>GeeksforGeeks:</b> A 
        <b>computer science</b>
        portal for geeks


By using CSS: The font-weight CSS property is used to make the text content bold.

b { 
    font-weight: bold; 

Supported Browsers:

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!