HTML <strong> tag

HTML <strong> tag highlights an important part of a text, which is differentiated by bold shrift. Unlike <b> tag, which is differentiating the text with bold shrift as well, <strong> tag is a logical markup and has semantic meaning of importance: 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 differentiate <strong> this important part of the text</strong>.</p>
  </body>
</html>

Attributes

<strong> tag supports Global attributes.