Mogrem
Mr
- Joined
- Aug 13, 2021
- Posts
- 80
That is an important point. The i tag is to specify italics. Specifying style like italics inline is deprecated in many cases, but it's not invalid HTML.I have mixed feelings about the <i>-<em> autoconversion. I suspect on average it's improving the coding of stories, since most of the stuff tagged as <i> really ought to be <em>. But it does introduce errors in the other direction, when italics are being used for purpose other than emphasis.
On the other hand the em tag is specifically only to indicated emphasis. Typically this is shown as italics but not always. However it is semantically invalid HTML to use the em tag to wrap a foreign word, for example, or even inner dialogue.
But regardless, devs and webmasters blanket replacing i tags with em tags did become the done thing with the big rush to HTML5 about 2008-ish. Unfortunately that now means there is now precisely as semantically inaccurate a situation as there was before, as em tags are used where they ought not to be. Only now we have two different tags...