HTML - <strong> tag



HTML <strong> tag is used for making the text strong that has more importance and the text inside it is typically displayed in the bold.

If we are writing content within a paragraph or any element, but an important term comes up in the content, we can use the <strong> tag to make the important words bold.

Syntax

<strong>...</strong>

Attribute

HTML strong tag supports Global and Event attributes of HTML.

Examples of HTML strong Tag

Bellow examples will illustrate the usage of strong tag, where, when and how to use to sound strong on any particular text in a sentence.

Creating strong element

In this following example, let’s demonstrate the <strong> tag.

<!DOCTYPE html>
<html>
<body>
   <p>This is normal paragraph</p>
   <strong>
      This is strong paragraph! 
   </strong>
   <p> 
      I am <strong> tutorialspoint </strong>
   </p>
</body>
</html>

Styling strong element

Considering the following example, we are demonstrating the working of the <strong> tag along with CSS properties

<!DOCTYPE html>
<html>
<head>
   <style>
      strong {
         font-style: italic;
      }
      .tp {
         color: green;
      }
   </style>
</head>
<body>
   <p>This is normal paragraph</p>
   <strong>
      This is strong paragraph!
   </strong>
   <p>
      I am <strong class="tp"> tutorialspoint </strong>
   </p>
</body>
</html>

Supported Browsers

Tag Chrome Edge Firefox Safari Opera
strong Yes Yes Yes Yes Yes
html_tags_reference.htm
Advertisements