HTML strong Tag

HTML <strong> tag is a phrase element utilized to showcase the significant text within a document on the web browser. The content enclosed in <strong> tags holds semantic value for search engine optimization and highlights the text with unique emphasis.

The content enclosed in the <strong> tag appears in a bold typeface by default when viewed on a web browser, but it is possible to modify this style using Cascading Style Sheets (CSS).

Note: Do not use <strong> tag just for making text bold, and if you want to make your text bold without any semantic importance then use <b> or CSS property.

Syntax

Example

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

Here are some details regarding the HTML <strong> element:

Display Inline
Start tag/End tag Both Start and End tag
Usage Formatting

Example

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:

Attribute:

Tag-specific attributes:

The <strong> element does not have any particular attribute associated with it.

Global attribute:

The <strong> element facilitates the implementation of Global attributes within HTML.

Event attribute:

The <strong> tag facilitates the utilization of Event attributes within HTML.

Supporting Browsers

Element Chrome IE Firefox Opera Safari
<strong> Yes Yes Yes Yes Yes

Input Required

This code uses input(). Please provide values below: