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, 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:
My Personal Notes arrow_drop_up
- Google Chrome
- Internet Explorer