What is the Difference between strong and b?
strong and b are Inline Elements that do not generate an automatic line break.
The output of the two HTML tags, is usually displayed in the same way by the web browser. By default, both HTML elements display the text in bold. However, there is an important difference between them.
In contrast to the b tag, the HTML strong tag has a semantic (i.e. content-related) meaning. Text marked up with <strong> is important and is strongly emphasized. Important Text begins with <strong> and must end with the closing tag </strong>.
However, text that is marked as strong will not necessarily be printed in bold in every browser.
The HTML B tag always displays text in bold. Boldfaced text begins with <b> and must be closed with </b>. It is used if you want to highlight text visually using bold type but do not want to mark it semantically.
Important text is created with the <strong> tag.
<strong>This text is especially important.
</strong>
Bold text without any special meaning is created with the <b> tag.
<b>This text is printed in bold type.
</b>
Avoid double markups such as
<strong><em>This emphalized text is important.
</em></strong>
<em><strong>This important text is emphasized.
</strong></em>
The strong tag has a higher relevance than the em tag. So it's better to use <i> instead of <em> if particularly important text should be displayed in bold and italics. This is the best variant to use:
<strong><i>This text in italics is important.
</i></strong>
<strong><b>This text in bold type is important.
</b></strong>
<b><strong>This important text is displayed bold.
</strong></b>
Such constructions may be considered to be spam.