Search unanswered questions...
Enter a question here...

What is the difference between static html dynamic html?

[Edit]

Static HTML is rendered once in the browser and never changed. Dynamic HTML (DHTML) may change as a result of conditions in a browser (e.g. a mouse click or pointer movement) without needing to fetch additional data from the server. For example, elements on the page may move or appear/disappear.

This is usually achieved through JavaScript (because it is supported on all major browsers) but can be done with any browser-supported scripting language that has access to the document's representation (commonly referred to as the Document Object Model (DOM)).

This term is not very clearly defined for some cases; for example changing the color of a link's contents when it is clicked or hovered over, or using CSS rules (such as a:hover) to show a submenu when the mouse hovers over a navigational menu. However, such cases are typically considered too simple to fall under the term DHTML.

Often, dynamic HTML is accompanied by asynchronous data retrieval (popularly known as Ajax), but technically the two techniques are separate and just happen to work well together, since the newly retrieved data needs to be displayed in the current document and thus the document changes.

Basic answer
----------------
Static HTML simply is what it is. The page is displayed and that's it.

Dynamic HTML uses a scripting language (like JavaScript) to change the HTML based on input or events. Example: roll-over graphics or buttons.

Improve Answer Discuss the question "What is the difference between static html dynamic html?" Watch Question

First answer by Kevindamm. Last edit by Kevindamm. Contributor trust: 17 [recommend contributor]. Question popularity: 7 [recommend question]

Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > Internet > Web Programming > What is the difference between static html dynamic html?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
Origin of html?  Brief guide to html?  How do you read HTML?  What are html feature?  What is html opensource?  HTML interactivity tools?  What does dynamic HTML do?  What is dynamic html page?  Static html and dynamic html?  Difference between HTML Flash?  Some example questions on HTML?  What is the difference between html n dhtml?  What is the difference between WML and HTML?  What are the disadvantages of utilizing HTML?  Differnce between html and dhtml programming?  Differences between static html and dynamic html?  What is Difference between static and dynamic pages in html?  What is the Difference between static html and dynamic html?