7.9.2 base.text.i Italics

Toggle example guides Toggle HTML markup

The <em> element or the <i> element is used for emphasizing a snippet of text with italics.

Feel free to use <i> element in HTML5. <i> is meant to convey voice, technical terms, etc.

Example
The following snippets of text are rendered as italic text. Italic text nested inside bold text should still be italic.
Markup: base/text/text-i.twig
The following snippets of text are <em class="{{modifier_class}}">rendered</em> as <i class="{{modifier_class}}">italic text</i>.
Italic text nested inside <b>bold text <i>should</i></b> <strong>still be
<em>italic</em></strong>.
Source: base/text/_text.scss, line 116