DHTML stands for dynamic Hypertext markup language.the world wide web consortium (W3C) defines DTHML as "a term used by some vendors to describe the combination of HTML,and scripts that allows document to be animated. 

In other words, dynamic HTML is not a specification.it is an implementation of HTML that uses the language in combination with a document object model (DOM), a scripting language like java script and cascading style (CSS).

It is not scripting language like java script. it is browser feature that allows your browser to be dynamic. A"dynamic" browser can alter a web page's look after the document has loaded.

Difference between static and Dynamic HTML

Static HTML means when we put HTML elements (images,paragraphs etc).in a specific order in the source code.The browser always shows all elements in the order given in the coding. If we want to chance the positioning or order of the elements, we have to again write the html code.

DHTML gives a way to reorganize our pages on the fly. we can take some elements out of the natural flow of the page, put them somewhere and change it is position again and again by clicking a link.   

The natural flow of the page in the page as the browser shows it one by one and displays them in the best possible way from the beginning to the end the HTML document. 

Advantages of DHTML

DHTML makes document dynamic. Dynamic documents

  • Allow the designer to control how the HTML displays web page's content.
  • React and change with the actions of the visitor.
  • Can exactly position any element in the window and change that position after the document has loaded.
  • Can hide and show content as needed.
DHTML allows any HTML element (any object on the screen that can be controlled independently using java script) in internet explorer to be manipulated at any time,turning plain HTML into dynamic HTML.

With DHTML allows, changes occur entirely on the client side (on the user's browser).

Using DHTML gives the author more control over how the page in formatted and how content is positioned on the page.  

You Might Also Like