A document object represents the html document that is displayed in that window. Go to the editor.
In the html dom the element object represents an html element like p div a table or any other html element.
A property is a value that you can get or set like changing the content of an html element. Getnameditem isid item length name removenameditem setnameditem specified value. Properties for all html elements.
The html dom document object model when a web page is loaded the browser creates a d ocument o bject m odel of the page. The dom programming interface. Html dom reference the references describe the properties and methods of each dom object along with examples.
Sample html file. The document object has various properties that refer to other objects which allow access to and modification of document content. The document object model dom connects web pages to scripts or programming languages by representing the structure of a document such as the html representing a web page in memory.