Italic and Emphasis

Just like bold, another very common semantic alteration is the use of italicized text. Text can be marked up as italicized with the use of the italic element, <i>...</i>.

As with bold/strong, italicized text does not necessarily imply semantically different meaning. Instead, you are encouraged to use the “emphasis” element instead ( <em>...</em> ). The emphasis element indicates subtle changes in the meaning of a sentence. By default the browser will show these elements in italic.

<p>This is an element is in <i>italics</i>, and will appear slanted.</p>

<p>This is an element is <em>emphasized</em>, and will also appear slanted.</p>

html elements emphasis italics