<strong>
The <strong>
tag is used to highlight text in bold while adding semantic meaning.
It indicates that the enclosed content is particularly important. Browsers generally apply bold formatting by default, but the tag is primarily used to convey meaning or importance, not just for visual reasons.
Therefore, the
<strong>
tag should not be confused with the<b>
tag, because even though they look visually identical, the<b>
tag does not add any additional importance to the enclosed text, unlike the<strong>
tag.
Structure and syntax of the <strong>
tag
Basic structure and syntax
The <strong>
tag is a container tag (it works in pairs) with an opening tag and a closing tag.
Usage example
It is possible to bold an entire sentence like this:
<strong>This text is important.</strong>
However, more generally, we prefer to use the <strong>
tag to make only certain passages of our paragraphs important.
<p>Believemy trains more than <strong>10,000 developers per year</strong> on its platform.</p>
Attributes
The <strong>
tag has no specific attributes, but it accepts all classic attributes (such as style
).
Browser compatibility
The <strong>
instruction is compatible with all browsers.
Element | Google Chrome | Safari | Mozilla Firefox | Edge |
<strong> | Yes | Yes | Yes | Yes |