Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
gelatocar
· 10y ago · 0 comments
<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.
Comments
[–]
illicium
10y ago
Use <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-...