+ 1

Em vs I

So I got taught for html that em is italic...yet sololearn is saying <i>...is there a real difference between the two? which is more used?

10th May 2017, 12:49 PM
Hunter Carwile
Hunter Carwile - avatar
3 Answers
+ 4
They will both make the text italic, but I recommend not to use <i>, as this is an example of using HTML for style. Don't do that in general, use HTML for mark-up (dividing your document into logical blocks), so that you can use CSS for style. If you want to emphasize something, use <em>. If the way you want emphasized things to look is italic, you're golden.
10th May 2017, 1:03 PM
Tob
Tob - avatar
+ 3
Same goes for <b></b> and <strong></strong> The browser will recognize both but em & strong are newer.
10th May 2017, 1:32 PM
Damien Lucchese
Damien Lucchese - avatar
0
ah so <i> is essentially the exact same thing but older kind of like cellphones still perform the same main function but are just newer?
10th May 2017, 1:34 PM
Hunter Carwile
Hunter Carwile - avatar