- Home
- /
- Tutorials
- /
- HTML Tutorial
- /
- HTML <strong> Tag
HTML Tags
HTML <strong> Tag
The strong tag marks text that is important: a warning, a key condition, the one sentence the reader must not miss. Browsers show it in bold, but the point is the meaning, which screen readers and search engines can use.
It is not the same as the b tag, which only draws attention without adding importance, or the em tag, which adds spoken stress.
Syntax
html
<strong>Important text goes here</strong>There are no special attributes, only the global ones such as class, id, style and title.
Example
html
<!DOCTYPE html>
<html>
<head>
<title>Strong Tag Example</title>
<style>
.important {
color: #d32f2f;
font-weight: bold;
background-color: #fff0f0;
padding: 2px 6px;
border-radius: 4px;
}
</style>
</head>
<body>
<h1>HTML <strong> Tag Example</h1>
<p>
This tag is used to highlight text that has <strong class="important" id="warning" title="Important Text">strong importance</strong> in meaning.
</p>
<p>
Example: Please <strong>save your work</strong> before exiting the program.
</p>
</body>
</html>"strong importance" appears bold and red because of its class, and "save your work" in the second paragraph is plain bold, the browser's default.
When to use it
- Warnings: "Do not turn off your computer during the update."
- Key details in instructions: "Submit the form by 5 March."
- The important part of a longer sentence, so someone skimming still gets it.
<strong> can be nested to show even greater importance, but in practice one level is plenty.
Browser Support
Chrome | Edge | Firefox | Safari | Opera | IE9+ |
|---|---|---|---|---|---|
| Yes | Yes | Yes | Yes | Yes | Yes |
Good to know
HTML <strong> Tag exercises
Mark something important
Write this paragraph and mark only the word Warning: (with its colon) as important: Warning: this cannot be undone.
Result
