mozilla

Revision 79173 of <i>

  • Revision slug: HTML/Element/i
  • Revision title: i
  • Revision id: 79173
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment 32 words added, 9 words removed

Revision Content

The HTML Italics Element (<i>) makes text italicized.

DOM Interface

This element implements the HTMLElement interface.

Implementation note: up to Gecko 1.9.2 included, Firefox implements the HTMLSpanElement interface for this element.

Example

   <p>
       This is the first sentence. <i>This whole sentence is in an italicized font.</i>
   </p>

Result

This is the first sentence. This whole sentence is in an italicized font.

Notes

Although this element was not deprecated in the HTML 4.01 specification, its use is discouraged in favor of the HTML Emphasis element (<em>) and style sheets.

See also

{{ HTML:Element_Navigation() }}

{{ languages( { "pl": "pl/HTML/Element/i" } ) }}

Revision Source

<p>The HTML Italics Element (<span style="font-family: Courier New;">&lt;i&gt;</span>) makes text italicized.</p>
<h3 class="editable">DOM Interface</h3>
<p>This element implements the <code><a href="/en/DOM/element" title="en/DOM/element">HTMLElement</a></code> interface.</p>
<div class="note">
<p><strong>Implementation note: </strong>up to Gecko 1.9.2 included, Firefox implements the <a href="/en/DOM/span" title="en/DOM/span"><span style="font-family: Courier New;">HTMLSpanElement</span></a> interface for this element.</p>
</div>
<h3 name="Example">Example</h3>
<pre class="eval">   &lt;p&gt;
       This is the first sentence. &lt;i&gt;This whole sentence is in an italicized font.&lt;/i&gt;
   &lt;/p&gt;
</pre>
<h4 name="Result">Result</h4>
<p>This is the first sentence. <em>This whole sentence is in an italicized font.</em></p>
<h3 name="Notes">Notes</h3>
<p>Although this element was not deprecated in the HTML 4.01 specification, its use is discouraged in favor of the HTML Emphasis element (&lt;em&gt;) and style sheets.</p>
<h3 name="See_also">See also</h3>
<ul> <li><a href="/en/HTML/Element/em" title="en/HTML/Element/em">HTML Emphasis element</a></li> <li>HTML 4.01 Specification: <a class="external" href="http://www.w3.org/TR/html4/present/graphics.html#h-15.2">Font Styles</a></li>
</ul>
<p>{{ HTML:Element_Navigation() }}</p>
<p>{{ languages( { "pl": "pl/HTML/Element/i" } ) }}</p>
Revert to this revision