Skip to content
Related Articles

Related Articles

Improve Article

HTML strong Tag

  • Last Updated : 28 Jun, 2021

The <strong> tag in HTML is the parsed tag and used to show the importance of the text. Make that text bold.

Syntax: 

<strong> Contents... </strong>

Example: 

HTML




<!DOCTYPE html>
<html>
   
    <body>
        <h1>GeeksforGeeks</h1>
        <h2><strong> Tag</h2>
        <!-- html strong tag used here -->
        <strong>Welcome to geeksforGeeks!</strong>
    </body>
   
</html>

Output: 
 



Example 2: Use CSS property to set bold font weight. 

HTML




<!DOCTYPE html>
<html>
    <head>
        <title>strong Tag</title>
        <style>
            body {
                text-align:center;
            }
            h1 {
                color:green;
            }
            .gfg {
                font-weight:bold;
            }
        </style>
    </head>
    <body>
        <h1>GeeksforGeeks</h1>
        <h2>font-weight: bold;</h2>
        <div class = "gfg">Welcome to geeksforGeeks!</div>
    </body>
</html>                   

Output: 
 

Supported Browsers: 

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

 

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.




My Personal Notes arrow_drop_up
Recommended Articles
Page :