totn HTML

HTML: <strong> tag

This HTML tutorial explains how to use the HTML element called the <strong> tag with syntax and examples.

Description

The HTML <strong> tag gives text a strong emphasis which traditionally means that the text is displayed as bold by the browser. This tag is also commonly referred to as the <strong> element.

Syntax

In HTML, the syntax for the <strong> tag is:

<body>
<p><strong>Emphasized text goes here</strong> but not here</p>
</body>

Sample Output


Attributes

Only the Global Attributes apply to the <strong> tag. There are no attributes that are specific to the <strong> tag.

Note

  • The HTML <strong> element is found within the <body> tag.
  • The <strong> tag is used to separate the text from the rest of the content. Browsers traditionally bold the text found within the <strong> tag. You can change this behavior with CSS.

Browser Compatibility

The <strong> tag has basic support with the following browsers:

  • Chrome
  • Android
  • Firefox (Gecko)
  • Firefox Mobile (Gecko)
  • Internet Explorer (IE)
  • Edge Mobile
  • Opera
  • Opera Mobile
  • Safari (WebKit)
  • Safari Mobile

Example

We will discuss the <strong> tag below, exploring examples of how to use the <strong> tag in HTML5, HTML 4.01 Transitional, XHTML 1.0 Transitional, XHTML 1.0 Strict, and XHTML 1.1.