HTML/CSSBeginner#html#semantics

What is the difference between <b>/<i> and <strong>/<em>?

<b> and <i> are purely presentational (bold/italic with no semantic meaning). <strong> conveys strong importance and <em> conveys stress emphasis — both carry semantic weight that assistive technologies announce differently.

Example
<p><strong>Warning:</strong> This action is <em>irreversible</em>.</p>

Related Questions

1
HTML/CSSIntermediate#accessibility#aria

What is ARIA and when should you use it?

Open
2
HTML/CSSAdvanced#accessibility#aria

How do you make a custom dropdown accessible?

Open
3
HTML/CSSAdvanced#accessibility

What is the accessibility tree and how does it relate to the DOM?

Open