3 ms·
<em> is a semantic element, and doesn't necessarily have to be italic. There are lots of use cases for italic text outside of <em>s.
by gelatocar 10y ago
<em> is a semantic element, and doesn't necessarily have to be italic. There are lots of use cases for italic text outside of <em>s.
- illicium 10y agoUse <i> if your use case is "alternate voice or mood" or "different quality of text, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, transliteration, a thought, or a ship name in Western texts" https://html.spec.whatwg.org/multipage/semantics.html#the-i-element https://html.spec.whatwg.org/multipage/semantics.html#the-i-...