Junior JavaScript

What is the difference between <i> and <em>?

  • <i> makes text italic for style only.
  • <em> gives emphasis that can change meaning.

Example:

<i>Book titles</i> are italicized.

Please <em>do not</em> touch that.

Follow me on LinkedIn:

Key Takeaway:

<em> adds importance — <i> adds style.

More from JavaScript Tutorial

All questions for this course