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():

Example

var x = document.getElementById(“myEm”);

Try it Yourself »

Create an Emphasized Object

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

Example

var x = document.createElement(“EM”);

Try it Yourself »

Standard Properties and Events

The Abbreviation object supports the standard properties and events.

Post Author: Zahid Farid