View Single Post
Old 08-16-2021, 07:26 AM   #13
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,363
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by Binchen View Post
<em> and <i> is something completly different. <i> sets the fontstyle to italic. <em> is emphasized is a semantic thing. Most browserstylesheet are displaying the emphasized text in italics, but thats just a usual representation.
<em> is neither better. nor more modern, nor more compatible than <i>. Exactly the same with <b> and <strong>.
True - as the thread linked by Tex mentions, there are many reasons why you might want <em> instead of <i>. Aside from the visual styling, because you can use identical css with either tag to make the look the same, the <em> is used by accessibility programs to treat the word/phrase differently - eg. different stress on a word in tts.

So… if you only need a visual italic (like in a list of references) then <i> works fine. But if it is supposed to mean something then you want the semantically correct <em>.
Turtle91 is offline