HTML <i> tag
The <i> tag defines a part of texts* in italic font-style in an HTML document.
Type: Inline Element
Example of <i> tag
<i> Italic text </i>
Supported Browsers
| Tag | Chrome | Internet Explorer | Firefox | Safari | Opera Mini |
|---|---|---|---|---|---|
| <i> | Yes | Yes | Yes | Yes | Yes |
Full code example
<!DOCTYPE html> <html> <head> </head> <body> <p> <i> Football </i> is my favorite game. <br> <i> Red </i> is my favorite color. </p> </body> </html>
Output on the browser
Football is my favorite game.
Red is my favorite color.
More reference
Don't be confused about the using of <em> tag and <i> tag. Both are used to define italic text. The <em> tag is used to define emphasized texts in which the word has internal meaning whereas the <i> tag is used only to display italic text.
Default CSS property of <i> tag
i {
font-style:italic; }
