It goes beyond just that. <em> doesn't even have to be italic at all, and nested <em> elements represent increasing levels of importance and can therefore be styled with increasingly noticeable visuals.
The em element isn't a generic "italics" element. Sometimes, text is intended to stand out from the rest of the paragraph, as if it was in a different mood or voice. For this, the i element is more appropriate.
So no, you actually should be using <i> if you really want italic content for the sake of being italic, and <em> only if you want to add emphasis without caring much about how that emphasis is visually achieved.
I am avid programming with more than 7 years creating software solutions for different problems. Obsessed with perfection, code with the best elegance posible trying to make my code easy readable.
Yes, it's exactly another point of view focusing in nested <em> tag, we have just adopted your recommendation to even clarify more the difference between these two tags. We really appreciate your interesting and the effort you have put writing this comment 😄
Thanks you for reading our post 😇
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It goes beyond just that.
<em>
doesn't even have to be italic at all, and nested<em>
elements represent increasing levels of importance and can therefore be styled with increasingly noticeable visuals.To quote the spec:
So no, you actually should be using
<i>
if you really want italic content for the sake of being italic, and<em>
only if you want to add emphasis without caring much about how that emphasis is visually achieved.Yes, it's exactly another point of view focusing in nested
<em>
tag, we have just adopted your recommendation to even clarify more the difference between these two tags. We really appreciate your interesting and the effort you have put writing this comment 😄Thanks you for reading our post 😇