i ElementThe i element is an inline element declared by the XHTML 1.1 Presentation Module (Inline Presentation)
Elements in the Presentation Module are:big | small | sub | sup | i | b | tt (Inline Presentation Support Module)hr (Block Presentation Support Module)
The i element indicates that a section of text is to be rendered in italics.
For example:
<p>This is <i>italicized text</i> embedded in a normal paragraph.</p>
This code is rendered as follows:
This is italicized text embedded in a normal paragraph.
In many instances, the use of this element is discouraged in favour of a more
semantically informative element, which also has meaning in non-visual browsers.
For instance, i would in most cases be better substituted by
em unless the italicization has only visual
significance and is not meant to place any additional emphasis upon the text. However, if it's only
for visual effect, then the italicizing would be better controlled using CSS,
so that content and presentation are well separated; personally I would not use the i element,
but instead the CSS declaration font-style:italic.
See also the b element.
There are no #REQUIRED attributes on the i element.
There are no specific attributes declared on the i element.
i element are listed below:class [ type NMTOKENS ]id [ type ID ]style [ type CDATA ], from the Style Attribute Module (deprecated)title [ type Text ]xmlns [ type URI - #FIXED 'http://www.w3.org/1999/xhtml' ]dir [ type Enumeration (ltr | rtl) ], from the Bi-directional Text Modulexml:lang [ type LanguageCode ]All attributes in the
Events Attribute Collection
are supported:onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
i element is:
( #PCDATA | Inline.mix )*
See Content Model & Nesting for information about Content Model syntax and Nesting Groups.
iabbr, acronym, br, cite, code, dfn, em, kbd, q, samp, span, strong, varabutton, input, label, select, textareaimgb, big, i, small, sub, sup, ttmapnoscript, scriptdel, insbdoobjectrubyiabbr, acronym, address, cite, code, dfn, div, em, h1 - h6, kbd, p, pre, q, samp, span, strong, varadd, dt, licaption, td, thbutton, fieldset, label, legendb, big, i, small, sub, sup, ttdel, insbdoobjectrb, rt