seniorHTML5

Explain the difference between <b> vs <strong> and <i> vs <em> in HTML5.

Updated Apr 28, 2026

Short answer

<b>/<i> are for visual style; <strong>/<em> are for semantic meaning and stress.

Deep explanation

In HTML5, <strong> indicates that its contents have strong importance or urgency. <em> indicates stress emphasis (changing the meaning of a sentence). <b> and <i> are now 'stylistic offsets'—used when you want text to look bold/italic without adding extra importance (e.g., keywords or technical terms).

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More HTML5 interview questions

View all →