Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between XHTML and DHTML?

Tags:

xhtml

dhtml

Reading about both separatedly, looks like the same, html+xml+javascript.

What's the difference between then? Is there any?

like image 818
The Student Avatar asked Feb 18 '11 13:02

The Student


3 Answers

XHTML is a w3c standard, a form of HTML that also strictly conforms to XML.

DHTML is a largely deprecated term (it is short for 'Dynamic HTML') which was introduced when the first early static web sites started introducing client side scripting to make the page more 'dynamic'. Nobody really talks in terms of DHTML any more (the term got superseded by 'ajax', and 'web 2.0', and 'web app')

like image 83
DanSingerman Avatar answered Sep 22 '22 17:09

DanSingerman


No, neither one is HTML + XML + Javascript.

XHTML is HTML (but also XML)
It's just a dialect of HTML that conforms to the syntax rules of XML. Javascript is not part of the XHTML specification (or any HTML specification).

DHTML is HTML + Javascript
It stands for Dynamic HTML, and Javascript adds the dynamic part. The HTML part can also be the dialect XHTML.

like image 22
Guffa Avatar answered Sep 25 '22 17:09

Guffa


  1. XHTML is a dialect that is based on the XML language while DHTML is not a dialect or a language but a collection of other technologies
  2. Both were created to provide additional features and interactivity to HTML
  3. DHTML still uses HTML at its core and is plagued with HTML related problems
  4. XHTML is more streamlined and easier to code with because of its conformance to XML
  5. DHTML is already outdated and has been replaced by other technologies

take a look to this post: http://www.differencebetween.net/technology/difference-between-dhtml-and-xhtml/

like image 23
JAiro Avatar answered Sep 23 '22 17:09

JAiro