HTML DOM Emphasized Object

Emphasized Object

The Emphasized object represents an HTML <em> element.

Access an Emphasized Object

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


var x = document.getElementById("myEm");
Try it Yourself »

Create an Emphasized Object

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


var x = document.createElement("EM");
Try it Yourself »

Standard Properties and Events

The Emphasized object supports the standard properties and events.

Related Pages

HTML tutorial: HTML Text Formatting Elements

HTML reference: HTML <em> tag

JavaScript reference: HTML DOM Italic Object