Dynamic
Q: I often hear the phrase "Dynamic HTML", but I don't understand what it means. I suggest you talk about Dynamic HTML at the right moment.
A: The first thing I want to say is that dynamic HTML, as a function of the browser itself, is actually just a concept, it does not belong to a specialized technology (such as Javascript,activex), it is not a label, not a plug-in, nor a browser. Dynamic HTML (DHTML) is one of the most inspiring and practical innovations in the process of network development in recent years. It is a concept that can be implemented through the comprehensive development of various technologies (of course, different browsers, the degree of implementation is also different), these technologies include JavaScript, VBScript, DocumentObject model (file target module), Layers and cascading stylesheets (CSS) and so on.
So, what is Dynamic HTML? In short, Dynamic HTML is an HTML that can be transformed at any time even after the Web page is downloaded into the browser. For example, when you move the mouse over a paragraph, the paragraph can become blue, or the page's head can slide over the computer screen. What you can do in HTML can be repeated after downloading the page.
So how does the HTML after the download change? This requires some means to get the browser to do the changes, which is what we're going to refer to as the various technologies that make up DHTML:
Dynamic HTML is a client-side programming language (Client-sidescripting Language) that has long been used to make HTML changes using server-end programming (especially JavaScript and VBScript). This is a typical example of dynamic HTML when the mouse slides over an image and the image changes. Microsoft and Netscape's 4.0 versions of browsers have a dynamic HTML programming language that allows more HTML features (htmlelements) to be played in the Web page. This mechanism, which will fully open the functionality of a Web page (or file target) by writing a language, is called the Document Object Model (DOM, file target module).
Dynamic HTML is a file target module (DOM)
In a sense, Dom is the true core of dynamic HTML. It's what makes HTML so volatile. The DOM embodies the hierarchical relationship of page elements, which are rendered on the browser at a specified time. The DOM includes spatio-temporal background information, such as the current date and time, including the browser's own properties, such as the browser's version number, including the window's own properties, such as the URL of the Web page, and finally the HTML elements, such as <p> tags, divs, or tables. By exposing the DOM to a dynamic HTML language, browsers can make more functional elements of a Web page work. If elements such as date and time cannot be automatically transformed, it can also be done by scripts modifying other elements.
There is also a DOM before IE4.0, but with IE4.0, any program language that is used to run on a browser can perform the functions of each part of the page's HTML.
(Note: Although Netscape's DOM has many limitations than IE's DOM, you can change that layer by placing the part of the page in a layered container (layercontainer).) Netscape claims that this feature will fully support the DOM standards set by the consortium in future versions of browsers. )
The part of the DOM that is being transformed by the specified element is called the event Model (incident module). The so-called "event" refers to a series of actions on the page, such as moving the mouse over a page element (onmouseover), publishing the Web page (onload), submitting a feedback form (onsubmit), clicking on the feedback Form input area (onfocus), and so on.
Dynamic HTML is a threaded style sheet (cascading stylesheets,css) because CSS is part of the DOM, its properties can also be represented by Dynamic HTML programming language, so it can achieve almost any changes in the visual effects of the page. By changing the CSS properties of the page elements (such as color, location, size), you can achieve all the effects of your machine's bandwidth and processor speed.
To sum up, CSS is the object of your Web page change, DOM is its dynamic mechanism, and client-side scripting is the actual process of change. This is the Dynamic HTML.