HTML DOM Italic Object

The Italic object represents an HTML <i> element

Italic Object

The Italic object represents an HTML <i> element.

Access an Italic Object

You can access an <i> element by using getElementById():

Example

var x = document.getElementById("myItalic");

Create an Italic Object

You can create an <i> element by using the document.createElement() method:

Example

var x = document.createElement("I");

Standard Properties and Events

The Italic object supports the standard properties and events.

Related Pages

HTML tutorial: HTML Text Formatting Elements

HTML reference: HTML <i> tag

JavaScript reference: HTML DOM Emphasized Object