+ 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?
3 odpowiedzi
+ 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.
+ 3
Same goes for <b></b> and <strong></strong>
The browser will recognize both but em & strong are newer.
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?