Browser are the place where the websites and its information displayed. But it doesn’t as easy as its displays. DOM [Document Object Model ] is the reason for the correct formatting of websites.
What is DOM?
DOM stands for “Document Object Model”. Its inbuilt in various modern browser. Its a data representation of the objects that comprises the structure and content of the site in our web browser.
All the tag and details between <html> and </html> tags termed as Document. As a result this, we could say everything in web is document. Basically its an object-oriented representation of html and xml document.
Its standard have 3 important parts. They are:
1) HTML Model
2) Core Model
3) XML Model
HTML Model tells a standard object model. In other words, Its a standard for how to get, change elements. In it all elements termed as elements.
It designed to be independent for any programming language, consistent API. Usually API[ Application Programming Interface] is combined as DOM and JS. Simply
Different browser have different , based on their conformance to the actual DOM standard, But each browsers use some document model to display web pages.
But the relationship between objects and interfaces, the implementation might be confusing. every tag has attribute because of that the perfect formatting of page finalized.
In it programming, the document and window objects whose interfaces is the most used. Element extracted from node interface and two interface provide many of the method
BOM( Browser Object Model ) consists of objects like navigator, history, location. In Document Object Model represents the content of the web pages and it can change.