What is difference between <em> and <i> ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

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

7th Jun 2019, 8:01 AM
Shubham Tandale
Shubham Tandale - avatar
2 Answers
+ 4
<em> is the more recent of the two and so is preferred over <i> for italics. <i> on the otherhand is the preferred way to make icons with css frameworks such as bootstrap and semantic UI. e.g. <i class=‘ui bell icon></i>
7th Jun 2019, 8:19 AM
Logomonic Learning
Logomonic Learning - avatar
+ 2
<i> stands for italic while <em> stands for emphasis. While both are typically (but not always) styled to display as italic, <em> is used when you want to put more stress on a word or phrase.
7th Jun 2019, 8:08 AM
River
River - avatar