The <i> tag in HTML is used to display the content in italic style. This tag is generally used to display the technical term, phrase, the important word in a different language.
<i> Contents... </i>
Below programs illustrate the <i> tag in HTML:
Example 2: A text can be written in italics using CSS also. When the CSS font-style property is equal to italic, then the text can be seen as follows:
- Use the <i> tag for words that you want to show differently from the normal phrase for readability purposes
- The tags like <i> and <b> now define semantics rather than typographic appearance. So to display text in italic type, users can use the CSS font-style property.
- Use <i> tag only when it is not marked up with these elements:
- Google Chrome
- Internet Explorer