THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Mark Object


Mark Object

The Mark Object is new in HTML5.

The Mark object speaks to a HTML <mark> element.

Note: The <mark> component isn't upheld in Internet Explorer 8 and prior versions.

Access a Mark Object

You can get to a <mark> component by utilizing getElementById():

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

Create a Mark Object

You can make a <mark> component by utilizing the document.createElement() method:

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