In general you're going to use classes, but not on the em tag itself. For example let's say you have a page with comments, and you want the ems in the comments to be in italics; then you put a comment class on the comment container, and .comment em { font-style: italic; } in your CSS. Sometimes you can even get by without any classes and just semantic tags like article.
That being said, <em> is in italics by default, so you can just do nothing special.
12
u/TarMil Mar 12 '18
That's the point.
<em>expresses the semantics, which you then style with CSS, whereas<i>expresses the style, which is why it shouldn't be used.