What is the difference between strong and b tag in HTML?
Both make text bold. The difference is in the meaning. <strong> means the text is important, and screen readers read it with stress. <b> only draws attention without extra importance, like a product name.
<p><strong>Warning:</strong> do not touch this.</p>
<p>Try the <b>Pro</b> plan.</p>
The same difference is between <em> (emphasis) and <i> (italic for a technical term or a thought). Prefer strong and em for normal text. See HTML Formatting.
Learn more about the similar topics:
| Tutorials |
|---|
| HTML Headings |
| HTML Paragraphs |
| HTML Styles |
| HTML Formatting |
| HTML Comments |
| HTML Symbols |