Change Font Size:

HTML DOM Profile

DOM for Web pages and elements of the object.

What is the HTML DOM?

Simple point:

Let me give an example. You tell someone: "to make the cut potatoes," he know for sure picked a potato, causing him to cut off the skin. Find a "potato" This operation is not for a difficult task, "peeling" is not a difficult movement.

Similarly, you may want to tell the browser: "this page into the yellow background color." However, no one browser can be clever, it is impossible to understand this rather ambiguous language, and can only be understood accurately programming languages. So you need to say: "document.getElementById (" content "). Style.backgroundColor = 'yellow';."

This is a simple JavaScript, it had completed the move was "a yellow", the operation targeted "the content of the page background." Yes, DOM task is to help us to "find a potato," then we can use the JavaScript potatoes "peeling." Click on the button below the implementation of the above statements.

Add that point: Not only can operate JavaScript DOM, in theory, all the programming language can be.

Complex points:

DOM is the Document Object Model Document Object Model acronym. According to W3C DOM specification, and the DOM is a browser, platform, language-dependent interface, allows you to visit other pages of standard components. Simple to understand, DOM Javascript resolved Netscape's and Microsoft's Jscript the conflict between the granting web designers and developers a standard method to enable them to visit their site data, and performance of the scripts like.

DOM is organized hierarchical structure of the node or collection of information clips. This hierarchical structure allows developers in the tree navigation for specific information. Analysis of the structure is usually the entire document to load and structural hierarchy, and then to do any work. Because it is based on the information level, and thus is considered DOM-based or object-based tree.

HTML DOM is HTML Document Object Model (Document Object Model) acronym HTML DOM is applicable specifically with HTML / XHTML document object model. Familiar with the development of software can be understood as web HTML DOM API. It will page the various elements are seen as one object, so that the Web page elements can also be access or computer language editing. For example, they can use the Javascript Dynamic HTML DOM revision website.


DOM based learning

Learning DOM before you should at least learn HTML / XHTML and CSS, have mastered the best basis for the JavaScript.

Where can I learn HTML DOM?

We've found the following DOM resource for you:

DOM Notes

Let's lean HTML DOM together! I have decided to conclude an HTML DOM study notes, March 17, 2008 23:38:35 and is expected tomorrow on the line. I chose the tutorial is W3Schools HTML DOM Guide. Yesterday there is a major discovery: This tutorial is the Chinese version of the official.