WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Italic Object


Italic Object

The Italic object represents an HTML <i> element.

Access an Italic Object

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

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

Create an Italic Object

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

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