HTML <strong> tag

The <strong> tag highlights an important part of a text. The content of the tag is displayed as bold. Unlike the <b> tag, which specifies bold text, the <strong> tag is a part of semantic markup. The content of the tag has higher weight for the search engines and the devices while reading it are emphasizing the content with special intonation.

To differentiate the text in bold without taking into account its importance use <b> tag or CSS font-weight feature.

Syntax

The content is written between opening (<strong>) and closing (</strong>) tags. The closing tag is mandatory.

Example

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
    <p>We’ve used &lt;strong&gt; tag to highlight <strong> this important part of the text</strong>.</p>
  </body>
</html>

Result

Attributes

The <strong> tag supports Global Attributes and the Event Attributes.

Browser support