<strong>
Text of great importance: a warning, key information.
- Display
- inline
- Closing tag
- Required
- Permitted content
- Phrasing content
Example
#<p><strong>Note:</strong> save the file before closing the editor, or you'll lose your changes.</p>Definition and usage
#The <strong> element marks content that is especially important, urgent, or serious, such as a warning in a set of instructions or the most important sentence in a paragraph. Browsers bold such text by default.
Don’t confuse it with <b>. Both elements look the same, but <b> only draws attention (for example, to a keyword in a summary) without adding meaning. If all you want is bold text, use CSS: font-weight: bold.
<strong> elements can be nested to mark an even greater weight for a piece of text.
Syntax
#<strong>important text</strong>Attributes
#This element has no attributes of its own. It supports the global attributes, such as class, id and hidden.
Default CSS
#Most browsers display this element with these default styles:
strong {
font-weight: bold;
}Browser support
#Widely available
Works in all modern browsers, phones included. You can use it without worry.
- Chrome
- Edge
- Firefox
- Safari
Good practices
#- For stress in speech that changes a sentence’s meaning, use
<em>, not<strong>. - Don’t bold entire paragraphs. When everything is important, nothing is.
Related entries
#- <strong> vs <b><strong> marks content that is important, urgent or serious. <b> only draws attention to a piece of text, without adding any weight. Visually, both are bold.
- <em>Stress in a sentence: a word that, read aloud, is pronounced with emphasis.
- <b>Draws attention to a piece of text without giving it any extra weight, e.g. keywords.
- <mark>Highlights a piece of text like a highlighter, because it’s relevant in the current context.
- <p>A paragraph of text.
Spotted a mistake or missing an example? Write to us.