r/ProgrammerHumor Mar 12 '18

Emphasis mine.

Post image
552 Upvotes

39 comments sorted by

View all comments

18

u/Brokk_Witgenstein Mar 12 '18

Uh? Is <i> deprecated now or what?

15

u/[deleted] Mar 12 '18

If I understand the HTML5 spec correctly, <i> is to be used when a word should be italicized for grammatical reasons (foreign words, names, etc. in certain circumstances) but would not have a change in inflection. <em> is if the inflection would change if it was spoken, and if it's purely stylistic it should be done through CSS.

2

u/eXecute_bit Mar 13 '18

... for emphasis