Open In App

HTML <strong> Tag

The HTML <strong> Tag is the parsed tag and is used to show the importance of the text. The content inside it is generally in bold format. The primary purpose of <strong> tag is to provide semantic meaning to the content, indicating its importance to both browsers and developers.

Note: This tag supports the global attributes and event attributes in HTML.



Syntax

<strong> Contents... </strong>

Example 1: This example illustrates the implementation of the HTML <strong> Tag.




<!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: In this example, we will use CSS property to set bold font weight.




<!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


Article Tags :