HTML <i> tag

The <i> tag is used to make text italic.

Standard attributes

class, dir, id, lang, style, title, xml:lang

For more information on standard attributes, check out our HTML standard attributes reference page.

Event attributes

onclick, ondblclick, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onkeydown, onkeypress, onkeyup

For more information on event attributes, check out our HTML event attributes reference page.

Example

HTML gives you the ability to display <i>italic</i> text. <i>Italic text</i>, you will <i>find</i> it <i>all over</i> this <i>isentence</i>.
Output:
HTML gives you the ability to display italic text. Italic text, you will find it all over this sentence.

Tips & notes

Don't overuse the <i> tag. This tag is meant to emphasize just a few important words here and there, not entire paragraphs or pages. Use the <i> tag rarely, only when you want to emphasize some text.

It's better to use CSS to style text than text formatting tags like <i>.

Web Reference
  1. CSS reference
  2. RSS reference
  3. HTML reference


© Copyright 2011-2012 Landofcode.com
Terms of use | Privacy policy | Copyright information | Make a donation