HTML DOM Mark Object

Mark object

The Mark object represents the HTML <mark> element.

Note:Internet Explorer 8 and earlier versions do not support the <mark> element.

Access the Mark object

You can use getElementById() to access the <mark> element:

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

Try It Yourself

Create a Mark object

You can use the document.createElement() method to create a <mark> element:

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

Try It Yourself

Standard Properties and Events

Mark Object Supports StandardsPropertiesAndEvents.

Related Pages

HTML Tutorial:HTML Text Formatting Elements

HTML Reference Manual:HTML <mark> Tag