WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM HTML Object


HTML Object

The HTML object speaks to a HTML <html> element.

Access a HTML Object

You can get to the <html> component by utilizing getElementsByTagName():

var x = document.getElementsByTagName("HTML")[0]; Try it

Tip: You can likewise get to the <html> component by utilizing the document.documentElement property.

Standard Properties and Events

The HTML object likewise bolsters the standard properties and events.