HTML DOM Mark Object


Mark Object

The Mark object represents an HTML <mark> element.

Access a Mark Object

You can access a <mark> element by using getElementById():

Example

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

Create a Mark Object

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

Example

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

Standard Properties and Events

The Mark object supports the standard properties and events.


Related Pages

HTML tutorial: HTML Text Formatting Elements

HTML reference: HTML <mark> tag


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.