Skip to content
Related Articles

Related Articles

HTML strong Tag

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 12 Jun, 2022

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

This tag also supports the global attributes and event attributes in HTML.
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

 


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!