HTML <i> Element
The <i> element is used to create italic text in a document.
Example code:
The <i>green</i> frog ran around the <i>blue pond</i>.
Displays: The green frog ran around the blue pond.
This element is still part of the HTML4 specification but the CSS font property can give you a much richer variety of italicized effects.
Example code:
The CSS
span.newitalic{ font-style: italic; color: green;}
The HTML
This will show <span class="newitalic">Green italic text </span>
Displays:
This will show Green italic text
Attributes
- CORE AND LANGUAGE ATTRIBUTES - class, id, title, style, dir, lang
- MOUSE AND KEYBOARD EVENT ATTRIBUTES - onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmouseout, onmousemove, onkeydown, onkeyup, onkeypress
HTML 4 Element List
<!--<comment>--><!DOCTYPE><a><abbr><acronym><address><applet><area><b><base><basefont><bdo><big><blockquote><body><br><button><caption><center><cite><code><col><colgroup><dd><del><dfn><dir><div><dl><dt><em><fieldset><font><form><frame><frameset><head><h1> to <h6><hr><html> <i><iframe><img><input><ins><isindex><kbd><label><legend><li><link><map><menu><meta><noframes><noscript><object><ol><optgroup><option><p><param><pre><q><s><samp><script><select><small><span><strike><strong><style><sub><sup><table><tbody><td><textarea><tfoot><th><thead><title><tr><tt><u><ul><var>
