HTML <strong> tag


HTML <strong> tag is a phrase tag which is used to represent the important text of a document on the browser. The text within <strong> text has semantic importance for the search engines and emphasize the text with special intonation.

The text within <strong> tag renders in bold font on the browser by default; however it can be changed using CSS.

Syntax:

<strong>Write your important content....</strong>  

Following are some specifications about the HTML <strong> tag

DisplayInline
Start tag/End tagBoth Start and End tag
UsageFormatting

Example

<!DOCTYPE html>  
<html>  
<head>  
<title>Strong tag</title>  
<style>  
            h1,h2{  
    text-align: center;  
                }  
           h2{  
            color: green;  
            }  
 </style>  
 </head>  
 <body>  
 <h1>Example of strong tag</h1>  
  <h2>Weather forecasting</h2>  
   <p>The weather is not good today.  
    <strong>It may heavy rain today, so it will better to be in your home.</strong>  
  </p>  
 </body>  
</html>  

Output:

HTML strong tag

Attribute:

Tag-specific attributes:

The <strong> tag does not contain any specific attribute.

Global attribute:

The <strong> tag supports the Global attributes in HTML.

Event attribute:

The <strong> tag supports the Event attributes in HTML.


Leave a Reply

Your email address will not be published. Required fields are marked *