HTML <i> tag

Updated: 10/11/2017 by Computer Hope

HTML i tagWhen writing in HTML, the <i> tag is an inline element that italicizes and makes text appear different from the surrounding text. It can be used to indicate a phrase from another language, a character's thought, a technical term, etc. The following sections contain information about this tag, including an example of it in use, as well as related attributes and browser compatibility.

Note: The <i> tag should only be used when there isn't a more appropriate element available; for instance <em> or <cite>.

Example code

The Spanish word for the color green is <i>verde</i>.

Example result

The Spanish word for the color green is verde.

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the <i> tag does not have any unique attributes, it does utilize all of the standard attributes.

Compatibility

Internet Explorer Firefox Safari Opera Chrome
All versions All versions All versions All versions All versions

Block of text, Browser, Compatibility, HTML strong tag, Italic font, Web design terms